Keep clang.exe around if we won't be replacing it with an unprefixed wrapper

This commit is contained in:
Martin Storsjö committed 2018-11-30 12:03:09 +02:00
1 parent e45e9ab98e
commit 32668f336b
1 file changed
+8 -7
+8 -7
View File
@@ -70,12 +70,13 @@ if [ -n "$EXEEXT" ]; then
if [ ! -L clang$EXEEXT ]; then if [ ! -L clang$EXEEXT ]; then
mv clang$EXEEXT clang-$CLANG_MAJOR$EXEEXT mv clang$EXEEXT clang-$CLANG_MAJOR$EXEEXT
fi fi
if [ -n "$HOST" ]; then if [ -z "$HOST" ]; then
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do HOST=$(./clang-$CLANG_MAJOR -dumpmachine | sed 's/-.*//')-w64-mingw32
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
done
for exec in ld objdump dlltool objcopy strip; do
ln -sf $HOST-$exec $exec
done
fi fi
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm strings widl windres; do
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
done
for exec in ld objdump dlltool objcopy strip; do
ln -sf $HOST-$exec $exec
done
fi fi