From 79c3996e5f2259152696230be4115dfc1e3d8ed6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 19 Sep 2024 17:07:11 +0200 Subject: GCC on Apple doesn’t support -ggdb at level 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make.c | 4 ++++ 1 file changed, 4 insertions(+) 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", }; -- cgit v1.2.3