pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust181: move checking of options to after options.mk is processed.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sat Oct 5 15:28:48 2024 +0000
Changeset: d6bea6927c3553529947c03a5a35383dbafcae9f
Modified Files:
rust181/options.mk
Log Message:
rust181: move checking of options to after options.mk is processed.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d6bea6927c3553529947c03a5a35383dbafcae9f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust181/options.mk | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diffs:
diff --git a/rust181/options.mk b/rust181/options.mk
index 7315df0435..3a6b4659ac 100644
--- a/rust181/options.mk
+++ b/rust181/options.mk
@@ -19,17 +19,6 @@ PKG_SUGGESTED_OPTIONS+= rust-internal-llvm
PKG_SUGGESTED_OPTIONS+= rust-internal-llvm
.endif
-# NetBSD/sparc64 when using the internal LLVM needs
-# to not use gcc 10.4 or 10.5 (as found in 10.0_BETA or 10.0), ref.
-# https://github.com/rust-lang/rust/issues/117231
-# (however, gcc from 9.x produces a working LLVM).
-.if ${MACHINE_PLATFORM:MNetBSD-10.*-sparc64}
-. if !empty(PKG_OPTIONS:Mrust-internal-llvm)
-# Require GCC 12 (from pkgsrc) to correctly build the embedded LLVM (17.x).
-GCC_REQD+= 12
-. endif
-.endif
-
# Bundle OpenSSL and curl into the cargo binary when producing
# bootstraps on NetBSD.
.if ${OPSYS} == "NetBSD" && ${BUILD_TARGET} == "dist"
@@ -40,6 +29,17 @@ PKG_OPTIONS_LEGACY_OPTS+= rust-llvm:rust-internal-llvm
.include "../../mk/bsd.options.mk"
+# NetBSD/sparc64 when using the internal LLVM needs
+# to not use gcc 10.4 or 10.5 (as found in 10.0_BETA or 10.0), ref.
+# https://github.com/rust-lang/rust/issues/117231
+# (however, gcc from 9.x produces a working LLVM, go figure).
+.if ${MACHINE_PLATFORM:MNetBSD-10.*-sparc64}
+. if !empty(PKG_OPTIONS:Mrust-internal-llvm)
+# Require GCC 12 (from pkgsrc) to correctly build the embedded LLVM (17.x).
+GCC_REQD+= 12
+. endif
+.endif
+
#
# Use the internal copy of LLVM or the external one?
#
Home |
Main Index |
Thread Index |
Old Index