From a586b9e8ee6a973da89383de75ecb1e3e5c0d0ff Mon Sep 17 00:00:00 2001 From: Paul Fultz II Date: Sat, 27 Aug 2022 16:22:31 -0500 Subject: [PATCH] Use safe compile option (#4413) --- cmake/compileroptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compileroptions.cmake b/cmake/compileroptions.cmake index ddb16bd00..0fcfe2ce2 100644 --- a/cmake/compileroptions.cmake +++ b/cmake/compileroptions.cmake @@ -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