Skip to content

Commit 416137b

Browse files
committed
[LTO] Extend CAS build workaround to LTO
Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
1 parent 7f1b981 commit 416137b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/lib/LTO/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
2+
# We append -fno-lifetime-dse in HandleLLVMOptions.cmake
3+
# append("-fno-lifetime-dse" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
4+
# But it is causing link failure with llvm::StdThreadPool::asyncEnqueue
5+
string(REPLACE "-fno-lifetime-dse" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
6+
endif ()
7+
18
add_llvm_component_library(LLVMLTO
29
LTO.cpp
310
LTOBackend.cpp

0 commit comments

Comments
 (0)