build-mingw-w64-tools: Only install an unprefixed widl if the native arch is one of the target archs
This commit is contained in:
1 parent
00c95e73ef
commit
c9ae57f3d0
1 file changed
+8
-1
@@ -103,6 +103,13 @@ if [ -n "$EXEEXT" ]; then
|
|||||||
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
|
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
|
||||||
fi
|
fi
|
||||||
if [ -n "$HOST" ]; then
|
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
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user