From c4d1bda3329c8a9cf5a3cdb08462997328790fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 24 Apr 2025 14:00:02 +0300 Subject: [PATCH] build-compiler-rt: Don't assume that the build produced asan files for armv7/aarch64 When removing them, also accept that they are missing to begin with. Since 655933070219f2b6f3a457c7e5af7edd4b5291b4 in llvm-project (Apr 25th), asan only gets built for x86. --- build-compiler-rt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-compiler-rt.sh b/build-compiler-rt.sh index f80272c..2680e16 100755 --- a/build-compiler-rt.sh +++ b/build-compiler-rt.sh @@ -129,10 +129,10 @@ for arch in $ARCHS; do aarch64) # asan doesn't work on aarch64 or armv7; make this clear by omitting # the installed files altogether. - rm "$INSTALL_PREFIX/lib/windows/libclang_rt.asan"*aarch64* + rm -f "$INSTALL_PREFIX/lib/windows/libclang_rt.asan"*aarch64* ;; armv7) - rm "$INSTALL_PREFIX/lib/windows/libclang_rt.asan"*arm* + rm -f "$INSTALL_PREFIX/lib/windows/libclang_rt.asan"*arm* ;; *) mv "$INSTALL_PREFIX/lib/windows/"*.dll "$PREFIX/$arch-w64-mingw32/bin"