aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-11 22:49:12 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-11 22:49:12 +0100
commit475d7ccc4c23972998a666204af77502ec3dbe04 (patch)
tree270ab2fc5429c3537e92634512937b26090d6c07 /make.c
parent350478c94d6f112185fb3c007e6ac47c6ef80da6 (diff)
Don’t use -m(arch tune)=native on MacOS
Diffstat (limited to 'make.c')
-rw-r--r--make.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/make.c b/make.c
index 8ddd72c..dfbe7bd 100644
--- a/make.c
+++ b/make.c
@@ -8,8 +8,12 @@
#include "cbs.h"
-#define CC "cc"
-#define CFLAGS "-pipe", "-O3", "-march=native", "-mtune=native"
+#define CC "cc"
+#ifdef __APPLE__
+# define CFLAGS "-pipe", "-O3"
+#else
+# define CFLAGS "-pipe", "-O3", "-march=native", "-mtune=native"
+#endif
#define DFLAGS "-DGRAB_DEBUG", "-g", "-ggdb3"
#define WFLAGS "-Wall", "-Wextra", "-Werror", "-Wpedantic"
#define PREFIX "/usr/local"