Mk/Uses/cargo.mk: set correct target CPU on powerpc
This commit is contained in:
parent
5e8efa7b11
commit
85a16842b1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue