Skip to content

Commit c568022

Browse files
committed
Fix linker usage
1 parent a705acf commit c568022

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/cmake/caches/Release.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ if (LLVM_RELEASE_ENABLE_LTO)
9292
# Enable LTO for the runtimes. We need to configure stage1 clang to default
9393
# to using lld as the linker because the stage1 toolchain will be used to
9494
# build and link the runtimes.
95-
set(RUNTIMES_CMAKE_ARGS "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON" CACHE STRING "")
96-
set(LLVM_ENABLE_LLD ON CACHE STRING "")
95+
set(RUNTIMES_CMAKE_ARGS "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON -DLLVM_ENABLE_LLD=ON" CACHE STRING "")
9796
endif()
9897

9998
# Stage 1 Common Config

0 commit comments

Comments
 (0)