[llvm] f6ac598 - [Release] Don't build during test-release.sh Phase 3 install (#82001)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 22:26:52 PST 2024


Author: Rainer Orth
Date: 2024-02-20T07:26:48+01:00
New Revision: f6ac598c104ed3c9f4bcbbe830f86500c8d1013e

URL: https://github.com/llvm/llvm-project/commit/f6ac598c104ed3c9f4bcbbe830f86500c8d1013e
DIFF: https://github.com/llvm/llvm-project/commit/f6ac598c104ed3c9f4bcbbe830f86500c8d1013e.diff

LOG: [Release] Don't build during test-release.sh Phase 3 install (#82001)

As described in [test-release.sh ninja install does builds in Phase
3](https://github.com/llvm/llvm-project/issues/80999), considerable
parts of Phase 3 of a `test-release.sh` build are run by `ninja
install`, ignoring both `$Verbose` and the parallelism set via `-j NUM`.

This patches fixes this by not specifying any explicit build target for
Phase 3, thus running the full build as usual.

Tested on `sparc64-unknown-linux-gnu`.

Added: 
    

Modified: 
    llvm/utils/release/test-release.sh

Removed: 
    


################################################################################
diff  --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index c3f4f42314309b..4314b565e11b03 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -537,6 +537,11 @@ function build_llvmCore() {
         InstallTarget="$InstallTarget install-builtins"
       fi
     fi
+    if [ "$Phase" -eq "3" ]; then
+      # Build everything at once, with the proper parallelism and verbosity,
+      # in Phase 3.
+      BuildTarget=
+    fi
 
     cd $ObjDir
     echo "# Compiling llvm $Release-$RC $Flavor"


        


More information about the llvm-commits mailing list