[flang-commits] [flang] [Release] Build compiler-rt during Phase 1 on AIX (PR #70672)

via flang-commits flang-commits at lists.llvm.org
Mon Oct 30 10:23:50 PDT 2023


https://github.com/azhan92 updated https://github.com/llvm/llvm-project/pull/70672

>From 691672671fb29bf8e98df22444c428f1392798be Mon Sep 17 00:00:00 2001
From: Alison Zhang <alisonzhang at ibm.com>
Date: Mon, 30 Oct 2023 11:27:43 -0400
Subject: [PATCH] build clang-rt on AIX

---
 llvm/utils/release/test-release.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 5fd5f82b544796e..967b98a94b8081f 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+u!/usr/bin/env bash
 #===-- test-release.sh - Test the LLVM release candidates ------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -417,6 +417,10 @@ function configure_llvmCore() {
     # building itself and any selected runtimes in the second phase.
     if [ "$Phase" -lt "2" ]; then
       runtime_list=""
+      # compiler-rt built-ins needed on AIX to have a functional Phase 1 clang.
+      if [ "$System" = "AIX" ]; then
+        runtime_list="compiler-rt"
+      fi  
     else
       runtime_list="$runtimes"
     fi



More information about the flang-commits mailing list