[vlc-devel] [PATCH] contrib: disable rust when compiling on macOS ARM-64

Felix Paul Kühne fkuehne at videolan.org
Tue Feb 16 10:23:53 UTC 2021


From: Felix Paul Kühne <felix at feepk.net>

---
 contrib/src/main-rust.mak | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/src/main-rust.mak b/contrib/src/main-rust.mak
index af877f3954..8667fb5b32 100644
--- a/contrib/src/main-rust.mak
+++ b/contrib/src/main-rust.mak
@@ -24,9 +24,11 @@ endif
 endif
 endif
 else ifdef HAVE_MACOSX
-ifneq ($(ARCH),aarch64) # macOS ARM-64 is unsupported
+ifneq ($(ARCH),aarch64) # running on macOS ARM-64 is unsupported
+ifneq ($(BUILD),aarch64-apple-darwin) # building on macOS ARM-64 is unsupported
 RUST_TARGET = $(ARCH)-apple-darwin
 endif
+endif
 else ifdef HAVE_SOLARIS
 RUST_TARGET = x86_64-sun-solaris
 else ifdef HAVE_LINUX
-- 
2.24.3 (Apple Git-128)



More information about the vlc-devel mailing list