Skip to content

Commit 32668f3

Browse files
committed
Keep clang.exe around if we won't be replacing it with an unprefixed wrapper
1 parent e45e9ab commit 32668f3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

install-wrappers.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ if [ -n "$EXEEXT" ]; then
7070
if [ ! -L clang$EXEEXT ]; then
7171
mv clang$EXEEXT clang-$CLANG_MAJOR$EXEEXT
7272
fi
73-
if [ -n "$HOST" ]; then
74-
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do
75-
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
76-
done
77-
for exec in ld objdump dlltool objcopy strip; do
78-
ln -sf $HOST-$exec $exec
79-
done
73+
if [ -z "$HOST" ]; then
74+
HOST=$(./clang-$CLANG_MAJOR -dumpmachine | sed 's/-.*//')-w64-mingw32
8075
fi
76+
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do
77+
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
78+
done
79+
for exec in ld objdump dlltool objcopy strip; do
80+
ln -sf $HOST-$exec $exec
81+
done
8182
fi

0 commit comments

Comments
 (0)