FreeBSD Bugzilla – Attachment 188386 Details for
Bug 223939
USES=cargo doesn't respect CPUTYPE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v1
cargo.target-cpu.diff (text/plain), 847 bytes, created by
Jan Beich
on 2017-11-29 03:47:46 UTC
(
hide
)
Description:
v1
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-11-29 03:47:46 UTC
Size:
847 bytes
patch
obsolete
>From 92739a684da5520042401e3a90cadc594e633a49 Mon Sep 17 00:00:00 2001 >From: Jan Beich <jbeich@FreeBSD.org> >Date: Tue, 28 Nov 2017 13:17:12 +0000 >Subject: [PATCH] cargo: respect CPUTYPE for Rust code > >--- > Mk/Uses/cargo.mk | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk >index 87d1d9b22e69..e3439579639f 100644 >--- a/Mk/Uses/cargo.mk >+++ b/Mk/Uses/cargo.mk >@@ -72,6 +72,13 @@ CARGO_ENV+= \ > RUSTDOC=${LOCALBASE}/bin/rustdoc \ > RUSTFLAGS="${RUSTFLAGS}" > >+# Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk >+.if ${ARCH} == amd64 || ${ARCH} == i386 >+RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/} >+.else >+RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} >+.endif >+ > # Helper to shorten cargo calls. > CARGO_CARGO_RUN= \ > cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CARGO_ENV} \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 223939
:
188353
| 188386