Skip to content

Commit

Permalink
wrappers: Replace the shell script wrapper with a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Sep 14, 2024
1 parent 39d6c9b commit 1c6a9e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 76 deletions.
6 changes: 3 additions & 3 deletions install-wrappers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ $CC wrappers/llvm-wrapper.c -o "$PREFIX/bin/llvm-wrapper$EXEEXT" -O2 -Wl,-s $WRA
if [ -n "$EXEEXT" ]; then
# For Windows, we should prefer the executable wrapper, which also works
# when invoked from outside of MSYS.
CTW_SUFFIX=$EXEEXT
CTW_LINK_SUFFIX=$EXEEXT
CTW=clang-target-wrapper$EXEEXT
else
CTW_SUFFIX=.sh
CTW=clang
fi
cd "$PREFIX/bin"
for arch in $ARCHS; do
Expand All @@ -153,7 +153,7 @@ for arch in $ARCHS; do
;;
esac
for exec in clang clang++ gcc g++ c++ as; do
ln -sf clang-target-wrapper$CTW_SUFFIX $triple-$exec$CTW_LINK_SUFFIX
ln -sf $CTW $triple-$exec$CTW_LINK_SUFFIX
done
for exec in addr2line ar ranlib nm objcopy objdump readelf size strings strip llvm-ar llvm-ranlib; do
if [ -n "$EXEEXT" ]; then
Expand Down
73 changes: 0 additions & 73 deletions wrappers/clang-target-wrapper.sh

This file was deleted.

0 comments on commit 1c6a9e0

Please sign in to comment.