summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2021-07-17 13:16:38 +0000
committerjperkin <jperkin@pkgsrc.org>2021-07-17 13:16:38 +0000
commitc61ae9dafb648ba5f57118a4c28f35ffdb45a8a9 (patch)
tree1ba5bff0acfb6919963e5e74d1a1e0f2add0cbb2
parent09011704e2fc807bd94b87b8135bdd037333e1fe (diff)
downloadpkgsrc-c61ae9dafb648ba5f57118a4c28f35ffdb45a8a9.tar.gz
rust: Darwin/aarch64 must use bundled llvm.
-rw-r--r--lang/rust/options.mk16
1 files changed, 9 insertions, 7 deletions
diff --git a/lang/rust/options.mk b/lang/rust/options.mk
index 54ca9562281..5b71b3143a3 100644
--- a/lang/rust/options.mk
+++ b/lang/rust/options.mk
@@ -1,17 +1,19 @@
-# $NetBSD: options.mk,v 1.15 2021/07/11 22:13:38 he Exp $
+# $NetBSD: options.mk,v 1.16 2021/07/17 13:16:38 jperkin Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rust
PKG_SUPPORTED_OPTIONS+= rust-cargo-static
+PKG_SUPPORTED_OPTIONS+= rust-llvm
.include "../../mk/bsd.fast.prefs.mk"
-# The bundled LLVM current has issues building on SunOS.
-.if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
-PKG_SUPPORTED_OPTIONS+= rust-llvm
# There may be compatibility issues with base LLVM.
-. if !empty(HAVE_LLVM)
-PKG_SUGGESTED_OPTIONS+= rust-llvm
-. endif
+.if !empty(HAVE_LLVM)
+PKG_SUGGESTED_OPTIONS+= rust-llvm
+.endif
+
+# macOS/arm64 currently cannot used shared llvm
+.if !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+PKG_SUGGESTED_OPTIONS+= rust-llvm
.endif
# Bundle OpenSSL and curl into the cargo binary when producing