mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2024-12-11 23:30:07 +08:00
Merge pull request #56 from harish-24/power_cpu
Fix option -march with -mcpu for POWER architecture
This commit is contained in:
commit
070030e09f
@ -96,6 +96,8 @@ else
|
||||
# - Not Supported: RISC-V, IBM Power, etc...
|
||||
ifneq ($(ARCH),$(filter $(ARCH),ppc64 ppc64le))
|
||||
OPTON += -march=native -mtune=native
|
||||
else
|
||||
OPTON += -mcpu=native -mtune=native
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -104,6 +106,8 @@ else
|
||||
# (-mmacosx-versin-min= requires at least that version of SDK be installed)
|
||||
ifneq ($(ARCH),$(filter $(ARCH),ppc64 ppc64le))
|
||||
OPTON += -march=native -mmacosx-version-min=10.10
|
||||
else
|
||||
OPTON += -mcpu=native
|
||||
endif
|
||||
#http://stackoverflow.com/questions/9840207/how-to-use-avx-pclmulqdq-on-mac-os-x-lion/19342603#19342603
|
||||
CFLAGS += -Wa,-q
|
||||
|
Loading…
Reference in New Issue
Block a user