mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Mk/Uses/cargo.mk: set correct target CPU on powerpc
This commit is contained in:
parent
5e8efa7b11
commit
85a16842b1
@ -140,7 +140,7 @@ CARGO_ENV+= RUST_BACKTRACE=1
|
||||
# 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=/}
|
||||
.elif ${ARCH:Mpowerpc64*}
|
||||
.elif ${ARCH:Mpowerpc*}
|
||||
RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/:S/power/pwr/}
|
||||
.else
|
||||
RUSTFLAGS+= ${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/}
|
||||
|
Loading…
Reference in New Issue
Block a user