[PATCH] D145884: test-release.sh: build projects and runtimes lists with semicolons

Dimitry Andric via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 26 05:00:38 PDT 2023


dim updated this revision to Diff 508399.
dim added a comment.

Add another build optimization: in the first phase, we only need to
build a working clang compiler, which is capable of building itself and
the runtimes in the second phase. Therefore, we can skip building any of
the runtimes in the first phase.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145884/new/

https://reviews.llvm.org/D145884

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


Index: llvm/utils/release/test-release.sh
===================================================================
--- llvm/utils/release/test-release.sh
+++ llvm/utils/release/test-release.sh
@@ -404,12 +404,23 @@
             ;;
     esac
 
-    if [ "$Phase" -eq "3" ]; then
-      project_list="$projects"
-    else
+    # During the first two phases, there is no need to build any of the projects
+    # except clang, since these phases are only meant to produce a bootstrapped
+    # clang compiler, capable of building the third phase.
+    if [ "$Phase" -lt "3" ]; then
       project_list="clang"
+    else
+      project_list="$projects"
     fi
-    runtime_list="$runtimes"
+    # During the first phase, there is no need to build any of the runtimes,
+    # since this phase is only meant to get a clang compiler, capable of
+    # building itself and any selected runtimes in the second phase.
+    if [ "$Phase" -lt "2" ]; then
+      runtime_list=""
+    else
+      runtime_list="$runtimes"
+    fi
+
     echo "# Using C compiler: $c_compiler"
     echo "# Using C++ compiler: $cxx_compiler"
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145884.508399.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230326/62055988/attachment.bin>


More information about the llvm-commits mailing list