build-mingw-w64-tools: Only install an unprefixed widl if the native arch is one of the target archs

This commit is contained in:
Martin Storsjö committed 2020-09-16 00:04:18 +03:00
1 parent 00c95e73ef
commit c9ae57f3d0
1 file changed
+8 -1
+8 -1
View File
@@ -103,6 +103,13 @@ if [ -n "$EXEEXT" ]; then
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
fi
if [ -n "$HOST" ]; then
ln -sf $HOST-widl$EXEEXT widl$EXEEXT
HOST_ARCH="${HOST%%-*}"
# Only install an unprefixed symlink if $HOST is one of the architectures
# we are installing wrappers for.
case $ARCHS in
*$HOST_ARCH*)
ln -sf $HOST-widl$EXEEXT widl$EXEEXT
;;
esac
fi
fi