aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-20 23:35:52 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-20 23:35:52 +0200
commitf3820421a24ca9b655167b8cb791a9f4eb781cd2 (patch)
treeea608a5aba45d1af83b109fe3e24ce9001223bc1
parentce9ca0ccdab49f38160d38386574b368ac6a13d7 (diff)
parent3f43d8d3a25c316a329baceab22b2c7d78642f2b (diff)
Merge branch 'master' of git.thomasvoss.com:mlib
-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",
};