[PATCH] D139306: [LLVM][Release] Prevent empty runtime name in release script

David Spickett via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 01:36:56 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG500587e23dfd: [LLVM][Release] Prevent empty runtime name in release script (authored by DavidSpickett).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139306

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
@@ -405,6 +405,10 @@
     esac
 
     project_list=${projects// /;}
+    # Leading spaces will result in ";<runtime name>". This causes a CMake
+    # error because the empty string before the first ';' is treated as an
+    # unknown runtime name.
+    runtimes=$(echo $runtimes | sed -e 's/^\s*//')
     runtime_list=${runtimes// /;}
     echo "# Using C compiler: $c_compiler"
     echo "# Using C++ compiler: $cxx_compiler"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139306.480385.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221206/35f36553/attachment.bin>


More information about the llvm-commits mailing list