From 0933a30500ff9b7c8a8569beda7530a71cf53b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 28 Jun 2019 00:14:32 +0300 Subject: [PATCH] Avoid printing an error when rerunning build-compiler-rt.sh on msys2 --- build-compiler-rt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-compiler-rt.sh b/build-compiler-rt.sh index af13e5c..c9fe89e 100755 --- a/build-compiler-rt.sh +++ b/build-compiler-rt.sh @@ -39,7 +39,9 @@ fi # Add a symlink for i386 -> i686; we normally name the toolchain # i686-w64-mingw32, but due to the compiler-rt cmake peculiarities, we # need to refer to it as i386 at this stage. -ln -sfn i686-w64-mingw32 $PREFIX/i386-w64-mingw32 || true +if [ ! -e $PREFIX/i386-w64-mingw32 ]; then + ln -sfn i686-w64-mingw32 $PREFIX/i386-w64-mingw32 || true +fi cd compiler-rt