From bcfb8836873d077a82f162ef5cdaed11280f58e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 3 Dec 2019 23:31:08 +0200 Subject: [PATCH] build-compiler-rt.sh: Don't make the i386-w64-mingw32 symlink if not building i686 --- build-compiler-rt.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-compiler-rt.sh b/build-compiler-rt.sh index 7384a95..c73214a 100755 --- a/build-compiler-rt.sh +++ b/build-compiler-rt.sh @@ -40,7 +40,11 @@ fi # i686-w64-mingw32, but due to the compiler-rt cmake peculiarities, we # need to refer to it as i386 at this stage. if [ ! -e "$PREFIX/i386-w64-mingw32" ]; then - ln -sfn i686-w64-mingw32 "$PREFIX/i386-w64-mingw32" || true + case $ARCHS in + *i686*) + ln -sfn i686-w64-mingw32 "$PREFIX/i386-w64-mingw32" || true + ;; + esac fi cd llvm-project/compiler-rt