Skip to content

Commit

Permalink
[Release] Build compiler-rt during Phase 1 on AIX (#70672)
Browse files Browse the repository at this point in the history
Compiler-rt built-ins are needed to have a functional Phase 1 clang
compiler on AIX. This PR adds compiler-rt to the runtime_list during Phase 1 to avoid
this problem.

---------

Co-authored-by: Alison Zhang <alisonzhang@ibm.com>
  • Loading branch information
azhan92 and alisonzhang4 committed Nov 2, 2023
1 parent 7fa41d8 commit ddfee5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llvm/utils/release/test-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 builtins is needed on AIX to have a functional Phase 1 clang.
if [ "$System" = "AIX" ]; then
runtime_list="compiler-rt"
fi
else
runtime_list="$runtimes"
fi
Expand Down

0 comments on commit ddfee5d

Please sign in to comment.