Skip to content

Commit ca503d0

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 8e5b43c commit ca503d0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

clang/cmake/caches/Release.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,23 @@ set(STAGE1_RUNTIMES "compiler-rt")
5555

5656
if (LLVM_RELEASE_ENABLE_PGO)
5757
list(APPEND STAGE1_PROJECTS "lld")
58-
set(CLANG_BOOTSTRAP_TARGETS
58+
set(tmp_targets
5959
generate-profdata
6060
stage2-package
6161
stage2-clang
62+
stage2
6263
stage2-install
6364
stage2-check-all
6465
stage2-check-llvm
6566
stage2-check-clang CACHE STRING "")
6667

68+
foreach(X IN LISTS LLVM_RELEASE_FINAL_STAGE_TARGETS)
69+
list(APPEND tmp_targets "stage2-${X}")
70+
endforeach()
71+
list(REMOVE_DUPLICATES tmp_targets)
72+
73+
set(CLANG_BOOTSTRAP_TARGETS "${tmp_targets}" CACHE STRING "")
74+
6775
# Configuration for stage2-instrumented
6876
set(BOOTSTRAP_CLANG_ENABLE_BOOTSTRAP ON CACHE STRING "")
6977
# This enables the build targets for the final stage which is called stage2.

0 commit comments

Comments
 (0)