[LLVM][Release] Prevent empty runtime name in release script
authorDavid Spickett <david.spickett@linaro.org>
Mon, 5 Dec 2022 11:53:06 +0000 (11:53 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 6 Dec 2022 09:36:50 +0000 (09:36 +0000)
commit500587e23dfd33dcd0169a5ab9e2657a6b12c315
treedd3955371b8174e15ededc6834578f1f04daf904
parent3e4ae76d035c199b113a073de68a5b129d6ad13e
[LLVM][Release] Prevent empty runtime name in release script

Unlike projects, runtimes doesn't have a default set of names.
This means you get a leading space at the start, which gets converted
to a ';' giving ";<runtime name>;<runtime name>".

CMake then errors because the "" before the first ';' is treated
as a runtime name and of course it's not a valid name.

Fix this by removing the leading spaces from runtimes before we
insert the ';'.

Reviewed By: ldionne

Differential Revision: https://reviews.llvm.org/D139306
llvm/utils/release/test-release.sh