[Release] Install compiler-rt builtins during Phase 1 on AIX (#81485)
authorazhan92 <alisonxzhang@gmail.com>
Fri, 16 Feb 2024 02:27:45 +0000 (21:27 -0500)
committerTom Stellard <tstellar@redhat.com>
Wed, 13 Mar 2024 18:13:40 +0000 (11:13 -0700)
The current test-release.sh script does not install the necessary
compiler-rt builtin's during Phase 1 on AIX, resulting on a
non-functional Phase 1 clang. Futhermore, the installation is also
necessary for Phase 2 on AIX.

Co-authored-by: Alison Zhang <alisonzhang@ibm.com>
(cherry picked from commit 3af5c98200e0b1268f755c3f289be4f73aac4214)

llvm/utils/release/test-release.sh

index 0af16387ce1d8ea4b799d3ff887c179b9d9b6180..4314b565e11b03b03c1dfab6189b9c8634d884fe 100755 (executable)
@@ -532,9 +532,9 @@ function build_llvmCore() {
       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
+      if [ "$System" = "AIX" ]; then
         BuildTarget="$BuildTarget runtimes"
-        InstallTarget="$InstallTarget install-runtimes"
+        InstallTarget="$InstallTarget install-builtins"
       fi
     fi
     if [ "$Phase" -eq "3" ]; then