[clang] Fix CLANG_BOOTSTRAP_TARGETS in Release.cmake (PR #106407)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 08:26:21 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Konrad Kleine (kwk)
<details>
<summary>Changes</summary>
Take all `LLVM_RELEASE_FINAL_STAGE_TARGETS` elements and append them prefixed with `stage2-` to `CLANG_BOOTSTRAP_TARGETS`.
---
Full diff: https://github.com/llvm/llvm-project/pull/106407.diff
1 Files Affected:
- (modified) clang/cmake/caches/Release.cmake (+4)
``````````diff
diff --git a/clang/cmake/caches/Release.cmake b/clang/cmake/caches/Release.cmake
index e5161dd9a27b96..4354a243f51e4e 100644
--- a/clang/cmake/caches/Release.cmake
+++ b/clang/cmake/caches/Release.cmake
@@ -68,6 +68,10 @@ if (LLVM_RELEASE_ENABLE_PGO)
set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE STRING "")
set(BOOTSTRAP_LLVM_ENABLE_RUNTIMES "compiler-rt" CACHE STRING "")
set(BOOTSTRAP_LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
+ foreach(X IN LISTS LLVM_RELEASE_FINAL_STAGE_TARGETS)
+ list(APPEND CLANG_BOOTSTRAP_TARGETS "stage2-${X}")
+ endforeach()
+ list(REMOVE_DUPLICATES CLANG_BOOTSTRAP_TARGETS)
else()
if (LLVM_RELEASE_ENABLE_LTO)
``````````
</details>
https://github.com/llvm/llvm-project/pull/106407
More information about the cfe-commits
mailing list