[PATCH] D141751: test-release.sh: Only build native target for stage 1 and stage 2
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 23:24:23 PST 2023
tstellar created this revision.
tstellar added reviewers: thieta, amyk, dim, hans, omjavaid.
Herald added a project: All.
tstellar requested review of this revision.
Herald added a project: LLVM.
This will help speed up the builds.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141751
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
@@ -411,9 +411,11 @@
# unknown runtime name.
runtimes=$(echo $runtimes | sed -e 's/^\s*//')
runtime_list=${runtimes// /;}
+ targets=""
else
project_list="clang"
runtime_list=""
+ targets="-DLLVM_TARGETS_TO_BUILD=Native"
fi
echo "# Using C compiler: $c_compiler"
echo "# Using C++ compiler: $cxx_compiler"
@@ -428,7 +430,7 @@
-DLLVM_ENABLE_PROJECTS="$project_list" \
-DLLVM_LIT_ARGS="-j $NumJobs" \
-DLLVM_ENABLE_RUNTIMES="$runtime_list" \
- $ExtraConfigureFlags $BuildDir/llvm-project/llvm \
+ $extra_flags $targets $BuildDir/llvm-project/llvm \
2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
env CC="$c_compiler" CXX="$cxx_compiler" \
cmake -G "$generator" \
@@ -437,7 +439,7 @@
-DLLVM_ENABLE_PROJECTS="$project_list" \
-DLLVM_LIT_ARGS="-j $NumJobs" \
-DLLVM_ENABLE_RUNTIMES="$runtime_list" \
- $ExtraConfigureFlags $BuildDir/llvm-project/llvm \
+ $extra_flags $targets $BuildDir/llvm-project/llvm \
2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log
cd $BuildDir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141751.489202.patch
Type: text/x-patch
Size: 1357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230114/ab2c98ae/attachment.bin>
More information about the llvm-commits
mailing list