pmaports/main/unixbench/0001-Stop-using-native-CPU-optimizations.patch
Aelin 67f18e1fc0
*/*: update my name and email
[ci:ignore-count]: intended
[ci:skip-build]: all patches still apply, no functional changes

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7721>
2026-01-11 18:52:28 +01:00

21 lines
765 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -90,18 +90,6 @@ else
## OS detection. Comment out if gmake syntax not supported by other 'make'.
OSNAME:=$(shell uname -s)
ARCH ?= $(shell uname -m)
- ifeq ($(OSNAME),Linux)
- # Not all CPU architectures support "-march" or "-march=native".
- # - Supported : x86, x86_64, ARM, AARCH64, riscv64, etc..
- # - Not Supported: IBM Power, etc...
- ifeq ($(ARCH),$(filter $(ARCH),ppc64 ppc64le))
- OPTON += -mcpu=native -mtune=native
- else ifeq ($(ARCH),riscv64)
- OPTON += -march=rv64g -mabi=lp64d
- else
- OPTON += -march=native -mtune=native
- endif
- endif
ifeq ($(OSNAME),Darwin)
# (adjust flags or comment out this section for older versions of XCode or OS X)