Skip to content

Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake #106407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions clang/cmake/caches/Release.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,22 @@ set(STAGE1_RUNTIMES "compiler-rt")

if (LLVM_RELEASE_ENABLE_PGO)
list(APPEND STAGE1_PROJECTS "lld")
set(CLANG_BOOTSTRAP_TARGETS
set(tmp_targets
generate-profdata
stage2-package
stage2-clang
stage2
stage2-install
stage2-check-all
stage2-check-llvm
stage2-check-clang CACHE STRING "")
stage2-check-clang)

foreach(X IN LISTS LLVM_RELEASE_FINAL_STAGE_TARGETS)
list(APPEND tmp_targets "stage2-${X}")
endforeach()
list(REMOVE_DUPLICATES tmp_targets)

set(CLANG_BOOTSTRAP_TARGETS "${tmp_targets}" CACHE STRING "")

# Configuration for stage2-instrumented
set(BOOTSTRAP_CLANG_ENABLE_BOOTSTRAP ON CACHE STRING "")
Expand Down
Loading