Skip to content

Commit

Permalink
test-release.sh: Only build the clang target in stage 1 and 2 (llvm#7…
Browse files Browse the repository at this point in the history
…2703)

This skips the build of all the unittests and llvm/clang tools, reducing
the number of ninja targets from 4,826 to 3,816 in phase 1 and phase 2.
  • Loading branch information
tstellar committed Nov 21, 2023
1 parent fb57f4e commit 907ed77
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions llvm/utils/release/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,17 @@ function build_llvmCore() {
fi
LitVerbose="-v"

InstallTarget="install"
if [ "$Phase" -lt "3" ]; then
BuildTarget="clang"
InstallTarget="install-clang install-clang-resource-headers"
# compiler-rt builtins is needed on AIX to have a functional Phase 1 clang.
if [ "$System" = "AIX" -o "$Phase" != "1" ]; then
BuildTarget="$BuildTarget runtimes"
InstallTarget="$InstallTarget install-runtimes"
fi
fi

redir="/dev/stdout"
if [ $do_silent_log == "yes" ]; then
echo "# Silencing build logs because of -silent-log flag..."
Expand All @@ -474,12 +485,12 @@ function build_llvmCore() {
cd $ObjDir
echo "# Compiling llvm $Release-$RC $Flavor"
echo "# ${MAKE} -j $NumJobs $Verbose"
${MAKE} -j $NumJobs $Verbose \
${MAKE} -j $NumJobs $Verbose $BuildTarget \
2>&1 | tee $LogDir/llvm.make-Phase$Phase-$Flavor.log > $redir

echo "# Installing llvm $Release-$RC $Flavor"
echo "# ${MAKE} install"
DESTDIR="${DestDir}" ${MAKE} install \
DESTDIR="${DestDir}" ${MAKE} $InstallTarget \
2>&1 | tee $LogDir/llvm.install-Phase$Phase-$Flavor.log > $redir
cd $BuildDir
}
Expand Down

0 comments on commit 907ed77

Please sign in to comment.