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/-mcpu is set by bsd.cpu.mk |
76 |
.if ${ARCH} == amd64 || ${ARCH} == i386 |
77 |
RUSTFLAGS+= ${CFLAGS:M-march=*:S/-march=/-C target-cpu=/} |
78 |
.else |
79 |
RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/} |
80 |
.endif |
81 |
|
75 |
# Helper to shorten cargo calls. |
82 |
# Helper to shorten cargo calls. |
76 |
CARGO_CARGO_RUN= \ |
83 |
CARGO_CARGO_RUN= \ |
77 |
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CARGO_ENV} \ |
84 |
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${CARGO_ENV} \ |