Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133075124
D31568.id93782.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
D31568.id93782.diff
View Options
diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -67,6 +67,9 @@
# Location of the cargo output directory.
CARGO_TARGET_DIR?= ${WRKDIR}/target
+# Default target platform (affects some RUSTFLAGS if passed)
+CARGO_BUILD_TARGET?= ${ARCH:S/amd64/x86_64/:S/i386/i686/}-unknown-${OPSYS:tl}
+
# Environment for cargo
# - CARGO_HOME: local cache of the registry index
# - CARGO_BUILD_JOBS: configure number of jobs to run
@@ -79,6 +82,7 @@
CARGO_HOME=${WRKDIR}/cargo-home \
CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
CARGO_TARGET_DIR=${CARGO_TARGET_DIR} \
+ CARGO_TARGET_${CARGO_BUILD_TARGET:S/-/_/g:tu}_LINKER="${CC}" \
RUST_BACKTRACE=1 \
RUSTC=${LOCALBASE}/bin/rustc \
RUSTDOC=${LOCALBASE}/bin/rustdoc \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 23, 6:11 PM (6 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24097901
Default Alt Text
D31568.id93782.diff (764 B)
Attached To
Mode
D31568: Mk/Uses/cargo.mk: respect CC when --target is passed
Attached
Detach File
Event Timeline
Log In to Comment