summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2019-08-14 16:00:23 +0000
committernia <nia@pkgsrc.org>2019-08-14 16:00:23 +0000
commit7f9c28be8e590c1165483bf0bef2259f5a90ef33 (patch)
tree387d2e6ab27c3e38df484ae2021a25530c2a9964 /lang/rust
parent9a98f88e06eb1c15bf16a02dae715d756af46ad4 (diff)
downloadpkgsrc-7f9c28be8e590c1165483bf0bef2259f5a90ef33.tar.gz
rust: Avoid using external llvm when external llvm isn't pkgsrc llvm.
Reported as a build failure in #pkgsrc by ng0.
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/options.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/rust/options.mk b/lang/rust/options.mk
index 8d3308e99ed..9d5799447d8 100644
--- a/lang/rust/options.mk
+++ b/lang/rust/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2019/08/14 13:05:25 nia Exp $
+# $NetBSD: options.mk,v 1.3 2019/08/14 16:00:23 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.rust
@@ -7,6 +7,10 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.rust
# 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
.endif
.include "../../mk/bsd.options.mk"