FreeBSD Bugzilla – Attachment 188353 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]
v0
cargo.target-cpu.diff (text/plain), 723 bytes, created by
Jan Beich
on 2017-11-28 13:28:15 UTC
(
hide
)
Description:
v0
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-11-28 13:28:15 UTC
Size:
723 bytes
patch
obsolete
>From f9b2c04b5962f9f87695dbb97386a39e804fde83 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 | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk >index 87d1d9b22e69..7cfca29ca7f8 100644 >--- a/Mk/Uses/cargo.mk >+++ b/Mk/Uses/cargo.mk >@@ -72,6 +72,9 @@ CARGO_ENV+= \ > RUSTDOC=${LOCALBASE}/bin/rustdoc \ > RUSTFLAGS="${RUSTFLAGS}" > >+# Adjust -C target-cpu if -march is set by bsd.cpu.mk >+RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/} >+ > # 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