build-mingw-w64-tools: Add some comments

This commit is contained in:
Martin Storsjö committed 2020-09-16 00:04:13 +03:00
1 parent d067b4909b
commit 00c95e73ef
1 file changed
+6
+6
View File
@@ -87,12 +87,18 @@ $MAKE -j$CORES
$MAKE install-strip $MAKE install-strip
cd .. cd ..
cd "$PREFIX/bin" cd "$PREFIX/bin"
# The build above produced $ANY_ARCH-w64-mingw32-widl, add symlinks to it
# with other prefixes.
for arch in $ARCHS; do for arch in $ARCHS; do
if [ "$arch" != "$ANY_ARCH" ]; then if [ "$arch" != "$ANY_ARCH" ]; then
ln -sf $ANY_ARCH-w64-mingw32-widl$EXEEXT $arch-w64-mingw32-widl$EXEEXT ln -sf $ANY_ARCH-w64-mingw32-widl$EXEEXT $arch-w64-mingw32-widl$EXEEXT
fi fi
done done
if [ -n "$EXEEXT" ]; then if [ -n "$EXEEXT" ]; then
# In a build of the tools for windows, we also want to provide an
# unprefixed one. If crosscompiling, we know what the native arch is;
# $HOST. If building natively, check the built clang to see what the
# default arch is.
if [ -z "$HOST" ] && [ -f clang$EXEEXT ]; then if [ -z "$HOST" ] && [ -f clang$EXEEXT ]; then
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32 HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
fi fi