aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-19 17:08:30 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-19 17:08:30 +0200
commit3f43d8d3a25c316a329baceab22b2c7d78642f2b (patch)
treef59a634484a737abf77ee168f672d2b64a5411f9
parent79c3996e5f2259152696230be4115dfc1e3d8ed6 (diff)
Don’t use -march and -mtune on Apple
-rw-r--r--make.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/make.c b/make.c
index 3e5a4a1..117679c 100644
--- a/make.c
+++ b/make.c
@@ -62,8 +62,12 @@ static char *cflags_dbg[] = {
static char *cflags_rls[] = {
"-DNDEBUG",
"-flto",
+#ifdef __APPLE__
+ "-mcpu=native",
+#else
"-march=native",
"-mtune=native",
+#endif
"-O3",
};