pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust Do not hardcode RUST_ARCH



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ff1561c9d04
branches:  trunk
changeset: 370195:4ff1561c9d04
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Fri Oct 13 12:42:12 2017 +0000

description:
Do not hardcode RUST_ARCH

diffstat:

 lang/rust/Makefile          |  4 ++--
 lang/rust/files/config.toml |  2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r d45cb6b3b3f7 -r 4ff1561c9d04 lang/rust/Makefile
--- a/lang/rust/Makefile        Fri Oct 13 12:33:02 2017 +0000
+++ b/lang/rust/Makefile        Fri Oct 13 12:42:12 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2017/10/07 17:40:27 maya Exp $
+# $NetBSD: Makefile,v 1.14 2017/10/13 12:42:12 ryoon Exp $
 
 DISTNAME=      rustc-1.20.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -121,7 +121,7 @@
 SUBST_CLASSES+=                config
 SUBST_STAGE.config=    post-configure
 SUBST_FILES.config+=   config.toml
-SUBST_VARS.config+=    RUSTC CARGO PREFIX PYTHONBIN
+SUBST_VARS.config+=    RUSTC CARGO PREFIX PYTHONBIN RUST_ARCH
 
 do-configure:
        ${CP} ${FILESDIR}/config.toml ${WRKSRC}/config.toml
diff -r d45cb6b3b3f7 -r 4ff1561c9d04 lang/rust/files/config.toml
--- a/lang/rust/files/config.toml       Fri Oct 13 12:33:02 2017 +0000
+++ b/lang/rust/files/config.toml       Fri Oct 13 12:42:12 2017 +0000
@@ -18,5 +18,5 @@
 [llvm]
 static-libstdcpp = false
 ninja = false
-[target.x86_64-unknown-netbsd]
+[target.@RUST_ARCH@]
 llvm-config = "@PREFIX@/bin/llvm-config"



Home | Main Index | Thread Index | Old Index