Skip to content

Commit 8abe54c

Browse files
committed
Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake
Take all `LLVM_RELEASE_FINAL_STAGE_TARGETS` elements and append them prefixed with `stage2-` to `CLANG_BOOTSTRAP_TARGETS`.
1 parent 16910a2 commit 8abe54c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/cmake/caches/Release.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ if (LLVM_RELEASE_ENABLE_PGO)
6868
set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE STRING "")
6969
set(BOOTSTRAP_LLVM_ENABLE_RUNTIMES "compiler-rt" CACHE STRING "")
7070
set(BOOTSTRAP_LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
71+
foreach(X IN LISTS LLVM_RELEASE_FINAL_STAGE_TARGETS)
72+
list(APPEND CLANG_BOOTSTRAP_TARGETS "stage2-${X}")
73+
endforeach()
74+
list(REMOVE_DUPLICATES CLANG_BOOTSTRAP_TARGETS)
7175

7276
else()
7377
if (LLVM_RELEASE_ENABLE_LTO)

0 commit comments

Comments
 (0)