llvm.org GIT mirror llvm / b775f2f
[CMake] Add -O1 in debug builds with LLVM_USE_SANITIZER git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189747 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 6 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
239239 NOT uppercase_CMAKE_BUILD_TYPE STREQUAL "RELWITHDEBINFO")
240240 add_flag_if_supported("-gline-tables-only")
241241 endif()
242 # Use -O1 even in debug mode, otherwise sanitizers slowdown is too large.
243 if (uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
244 add_flag_if_supported("-O1")
245 endif()
242246 endmacro()
243247
244248 # Turn on sanitizers if necessary.