From 5fc9728420a1ea45fc2be634a38a3392663790ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 9 Oct 2020 15:55:58 +0300 Subject: [PATCH] strip-llvm: Fix name mangling of tools that contain $EXEEXT This makes sure that llvm-exegesis is handled correctly (i.e. stripped out) if build-llvm.sh was invoked with --full-llvm when building for windows. --- strip-llvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strip-llvm.sh b/strip-llvm.sh index 7164a41..5491746 100755 --- a/strip-llvm.sh +++ b/strip-llvm.sh @@ -58,7 +58,7 @@ for i in bugpoint c-index-test clang-* diagtool dsymutil git-clang-format hmapto # Some in the list are expanded globs, some are plain names we list. case $i in *$EXEEXT) - basename=$(echo $i | sed s/$EXEEXT//) + basename=$(echo $i | sed "s/$EXEEXT\$//") ;; esac i=$basename