diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 22:49:12 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-11 22:49:12 +0100 |
commit | 475d7ccc4c23972998a666204af77502ec3dbe04 (patch) | |
tree | 270ab2fc5429c3537e92634512937b26090d6c07 | |
parent | 350478c94d6f112185fb3c007e6ac47c6ef80da6 (diff) |
Don’t use -m(arch tune)=native on MacOS
-rw-r--r-- | make.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |