Only make the prefixless widl symlink after compiling widl

When building in msys2, symlinks are plain copies, and one can't
make the symlink in advance.
This commit is contained in:
Martin Storsjö committed 2019-06-21 22:52:34 +03:00
1 parent 7edc154d50
commit f80d067176
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -137,11 +137,17 @@ for arch in $ARCHS; do
make install
cd ..
done
cd $PREFIX/bin
if [ -n "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
cd $PREFIX/bin
for arch in $ALL_ARCHS; do
if [ "$arch" != "$ARCHS" ]; then
ln -sf $ARCHS-w64-mingw32-widl$EXEEXT $arch-w64-mingw32-widl$EXEEXT
fi
done
fi
if [ -n "$EXEEXT" ]; then
if [ -z "$HOST" ]; then
HOST=$(./clang -dumpmachine | sed 's/-.*//')-w64-mingw32
fi
ln -sf $HOST-widl$EXEEXT widl$EXEEXT
fi
+1 -1
View File
@@ -78,7 +78,7 @@ if [ -n "$EXEEXT" ]; then
if [ -z "$HOST" ]; then
HOST=$(./clang-$CLANG_MAJOR -dumpmachine | sed 's/-.*//')-w64-mingw32
fi
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm objcopy strings strip widl windres; do
for exec in clang clang++ gcc g++ cc c99 c11 c++ ar ranlib nm objcopy strings strip windres; do
ln -sf $HOST-$exec$EXEEXT $exec$EXEEXT
done
for exec in ld objdump dlltool; do