Skip to content

Commit 291866b

Browse files
committed
wrappers: Replace the shell script wrapper with a symlink
1 parent 39d6c9b commit 291866b

File tree

2 files changed

+3
-76
lines changed

2 files changed

+3
-76
lines changed

install-wrappers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ $CC wrappers/llvm-wrapper.c -o "$PREFIX/bin/llvm-wrapper$EXEEXT" -O2 -Wl,-s $WRA
139139
if [ -n "$EXEEXT" ]; then
140140
# For Windows, we should prefer the executable wrapper, which also works
141141
# when invoked from outside of MSYS.
142-
CTW_SUFFIX=$EXEEXT
143142
CTW_LINK_SUFFIX=$EXEEXT
143+
CTW=clang-target-wrapper$EXEEXT
144144
else
145-
CTW_SUFFIX=.sh
145+
CTW=clang
146146
fi
147147
cd "$PREFIX/bin"
148148
for arch in $ARCHS; do
@@ -153,7 +153,7 @@ for arch in $ARCHS; do
153153
;;
154154
esac
155155
for exec in clang clang++ gcc g++ c++ as; do
156-
ln -sf clang-target-wrapper$CTW_SUFFIX $triple-$exec$CTW_LINK_SUFFIX
156+
ln -sf $CTW $triple-$exec$CTW_LINK_SUFFIX
157157
done
158158
for exec in addr2line ar ranlib nm objcopy objdump readelf size strings strip llvm-ar llvm-ranlib; do
159159
if [ -n "$EXEEXT" ]; then

wrappers/clang-target-wrapper.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)