We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367847c commit f0ebaf9Copy full SHA for f0ebaf9
1 file changed
cmake/compileroptions.cmake
@@ -58,7 +58,10 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
58
# TODO: verify this regression still exists in clang-15
59
if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
60
# work around performance regression - see https://github.com/llvm/llvm-project/issues/53555
61
- add_compile_options_safe(-mllvm -inline-deferral)
+ check_cxx_compiler_flag("-mllvm -inline-deferral" _has_mllvm_inline_deferral)
62
+ if (_has_mllvm_inline_deferral)
63
+ add_compile_options(-mllvm -inline-deferral)
64
+ endif()
65
endif()
66
67
# use force DWARF 4 debug format since not all tools might be able to handle DWARF 5 yet - e.g. valgrind on ubuntu 20.04
0 commit comments