llvm.org GIT mirror llvm / 4f34449
Append -w when LLVM_ENABLE_WARNINGS is Off. Reviewed by rnk (D31702)! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300100 91177308-0d34-0410-b5e6-96231b3b80d8 Vassil Vassilev 2 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
560560 add_flag_if_supported("-Wstring-conversion" STRING_CONVERSION_FLAG)
561561 endif (LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL))
562562
563 if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT LLVM_ENABLE_WARNINGS)
564 append("-w" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
565 endif()
566
563567 macro(append_common_sanitizer_flags)
564568 if (NOT MSVC)
565569 # Append -fno-omit-frame-pointer and turn on debug info to get better