[PATCH] D112748: [release] Use the Bootstrapping build for building LLVM releases
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 28 12:39:52 PDT 2021
ldionne created this revision.
ldionne added a reviewer: tstellar.
ldionne requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Instead of using the (now deprecated) Projects build for libcxx, libcxxabi
and libunwind, this patch uses the Bootstrapping build. This implies that
Clang will be built from scratch, and then the runtimes will be built using
that just-built Clang instead of the system compiler. This is the correct
way of assembling a toolchain, since we don't want to ship runtimes that
were built with a non-Clang compiler (or a potentially older Clang).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D112748
Files:
llvm/utils/release/test-release.sh
Index: llvm/utils/release/test-release.sh
===================================================================
--- llvm/utils/release/test-release.sh
+++ llvm/utils/release/test-release.sh
@@ -236,16 +236,17 @@
# Projects list
projects="llvm clang clang-tools-extra"
+runtimes=""
if [ $do_rt = "yes" ]; then
projects="$projects compiler-rt"
fi
if [ $do_libs = "yes" ]; then
- projects="$projects libcxx"
+ runtimes="libcxx"
if [ $do_libcxxabi = "yes" ]; then
- projects="$projects libcxxabi"
+ runtimes="$runtimes libcxxabi"
fi
if [ $do_libunwind = "yes" ]; then
- projects="$projects libunwind"
+ runtimes="$runtimes libunwind"
fi
fi
case $do_test_suite in
@@ -377,6 +378,7 @@
esac
project_list=${projects// /;}
+ runtime_list=${runtimes// /;}
echo "# Using C compiler: $c_compiler"
echo "# Using C++ compiler: $cxx_compiler"
@@ -387,6 +389,7 @@
cmake -G "$generator" \
-DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \
-DLLVM_ENABLE_PROJECTS="$project_list" \
+ -DLLVM_ENABLE_RUNTIMES="$runtime_list" \
$ExtraConfigureFlags $BuildDir/llvm-project/llvm \
2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
env CC="$c_compiler" CXX="$cxx_compiler" \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112748.383125.patch
Type: text/x-patch
Size: 1297 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211028/784c31a4/attachment.bin>
More information about the llvm-commits
mailing list