Avoid errors when recreating an existing symlink on msys2
In this environment, symlinks don't exist but are made as copies. In such cases, the -n option to ln doesn't work for making this a no-op. Alternatively, we could append "|| true", which would print an error but continue.
This commit is contained in:
1 parent
c89799c996
commit
5f70dd1a1f
1 file changed
+3
-1
+3
-1
@@ -76,7 +76,9 @@ if [ -z "$HOST" ]; then
|
|||||||
if [ -z "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
|
if [ -z "$SKIP_INCLUDE_TRIPLET_PREFIX" ]; then
|
||||||
for arch in $ARCHS; do
|
for arch in $ARCHS; do
|
||||||
mkdir -p $PREFIX/$arch-w64-mingw32
|
mkdir -p $PREFIX/$arch-w64-mingw32
|
||||||
ln -sfn ../generic-w64-mingw32/include $PREFIX/$arch-w64-mingw32/include
|
if [ ! -e $PREFIX/$arch-w64-mingw32/include ]; then
|
||||||
|
ln -sfn ../generic-w64-mingw32/include $PREFIX/$arch-w64-mingw32/include
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user