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.
This commit is contained in:
Martin Storsjö committed 2020-10-09 15:55:58 +03:00
1 parent 66eb0af305
commit 5fc9728420
1 file changed
+1 -1
+1 -1
View File
@@ -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