View | Details | Raw Unified | Return to bug 223939 | Differences between
and this patch

Collapse All | Expand All

(-)b/Mk/Uses/cargo.mk (+3 lines)
Lines 72-77 CARGO_ENV+= \ Link Here
72
	RUSTDOC=${LOCALBASE}/bin/rustdoc \
72
	RUSTDOC=${LOCALBASE}/bin/rustdoc \
73
	RUSTFLAGS="${RUSTFLAGS}"
73
	RUSTFLAGS="${RUSTFLAGS}"
74
74
75
# Adjust -C target-cpu if -march is set by bsd.cpu.mk
76
RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}
77
75
# Helper to shorten cargo calls.
78
# Helper to shorten cargo calls.
76
CARGO_CARGO_RUN= \
79
CARGO_CARGO_RUN= \
77
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CARGO_ENV} \
80
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CARGO_ENV} \

Return to bug 223939