Skip to content

Commit e676cb0

Browse files
authored
[CMake] remove -fno-lifetime-dse from CAS (#20292)
We append -fno-lifetime-dse in HandleLLVMOptions.cmake due to GCC bug But it is causing link failure with llvm::StdThreadPool::asyncEnqueue Remove it from libCAS.
1 parent 3fa0eb0 commit e676cb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/lib/CAS/CMakeLists.txt

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

0 commit comments

Comments
 (0)