aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
Diffstat (limited to 'make.c')
-rw-r--r--make.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/make.c b/make.c
index c5ae311..47acf7d 100644
--- a/make.c
+++ b/make.c
@@ -51,15 +51,23 @@ static char *cflags_req[] = {
static char *cflags_dbg[] = {
"-fsanitize=address,undefined",
+#if __GNUC__ && __APPLE__
+ "-ggdb2",
+#else
"-ggdb3",
+#endif
"-O0",
};
static char *cflags_rls[] = {
"-DNDEBUG",
"-flto",
+#ifdef __APPLE__
+ "-mcpu=native",
+#else
"-march=native",
"-mtune=native",
+#endif
"-O3",
};