Fix building only certain architectures when building on windows

On windows, we rename clang.exe to clang-$MAJOR.exe, and later
install clang.exe as a wrapper for the default architecture. But
if only building certain architectures, and the host architecture
isn't one of them, we shouldn't install any unprefixed clang.exe at
all.
This commit is contained in:
Martin Storsjö committed 2019-12-03 23:31:01 +02:00
1 parent 64d39428b6
commit af1099048a
3 files changed
+19 -9

No files matched your search

+4 -2
View File
@@ -156,8 +156,10 @@ if [ -n "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
done
fi
if [ -n "$EXEEXT" ]; then
if [ -z "$HOST" ]; then
if [ -z "$HOST" ] && [ -f clang$EXEEXT ]; then
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
fi
ln -sf $HOST-widl$EXEEXT widl$EXEEXT
if [ -n "$HOST" ]; then
ln -sf $HOST-widl$EXEEXT widl$EXEEXT
fi
fi