Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 24382c8

Browse files
committed
arch/ppc64.sh: match RUSTFLAGS with CFLAGS ...
* Enable AltiVec, secure-plt, and hard float. * Use 64-bit instructions. * Targets G5 CPU
1 parent a7ca603 commit 24382c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/ppc64.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CFLAGS_COMMON_ARCH=' -m64 -mcpu=G5 -maltivec -mabi=altivec -msecure-plt -mhard-f
1010
CFLAGS_GCC_OPTI_LTO="${CFLAGS_COMMON_OPTI_LTO} -flto-partition=none "
1111
LDFLAGS_GCC_OPTI_LTO="${LDFLAGS_COMMON_OPTI_LTO} -flto-partition=none "
1212

13+
RUSTFLAGS_COMMON_ARCH='-Ctarget-cpu=g5 -Ctarget-features=+altivec,+secure-plt,+hard-float,+64bit '
1314
# LLD does not support POWER ABI v1.
1415
RUSTFLAGS_COMMON_OPTI_LTO='-Clink-arg=-fuse-ld=bfd -Clink-arg=-Wl,-build-id=sha1'
1516

0 commit comments

Comments
 (0)