From 475d7ccc4c23972998a666204af77502ec3dbe04 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 11 Jan 2024 22:49:12 +0100 Subject: Don’t use -m(arch tune)=native on MacOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make.c | 8 ++++++-- 1 file 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" -- cgit v1.2.3