Use safe compile option (#4413)

This commit is contained in:
Paul Fultz II 2022-08-27 16:22:31 -05:00 committed by GitHub
parent 5e0fc24bb7
commit a586b9e8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# TODO: verify this regression still exists in clang-15
if (CMAKE_BUILD_TYPE STREQUAL "Release" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
# work around performance regression - see https://github.com/llvm/llvm-project/issues/53555
add_compile_options(-mllvm -inline-deferral)
add_compile_options_safe(-mllvm -inline-deferral)
endif()
# 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