aboutsummaryrefslogtreecommitdiff
path: root/make.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-19 17:07:11 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-19 17:07:11 +0200
commit79c3996e5f2259152696230be4115dfc1e3d8ed6 (patch)
treeb86050a633ab2d7b1c3d697e1f77f64a84803671 /make.c
parentb6792f703c715ccfc0854c4e8ee3ca703565f4eb (diff)
GCC on Apple doesn’t support -ggdb at level 3
Diffstat (limited to 'make.c')
-rw-r--r--make.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/make.c b/make.c
index a2fa75f..3e5a4a1 100644
--- a/make.c
+++ b/make.c
@@ -51,7 +51,11 @@ static char *cflags_req[] = {
static char *cflags_dbg[] = {
"-fsanitize=address,undefined",
+#if __GNUC__ && __APPLE__
+ "-ggdb2",
+#else
"-ggdb3",
+#endif
"-O0",
};