We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3565c7 + 4853d41 commit 86b2edaCopy full SHA for 86b2eda
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -881,6 +881,9 @@ if(uppercase_LLVM_ENABLE_LTO STREQUAL "THIN")
881
elseif(LLVM_USE_LINKER STREQUAL "gold")
882
append("-Wl,--plugin-opt,cache-dir=${PROJECT_BINARY_DIR}/lto.cache"
883
CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
884
+ elseif(LINKER_IS_LLD_LINK)
885
+ append("/lldltocache:${PROJECT_BINARY_DIR}/lto.cache"
886
+ CMAKE_EXE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
887
endif()
888
elseif(uppercase_LLVM_ENABLE_LTO STREQUAL "FULL")
889
append("-flto=full" CMAKE_CXX_FLAGS CMAKE_C_FLAGS)
0 commit comments