From bb058d8f35aa85185bb0ea80798c0d390dd510e0 Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Sun, 28 Aug 2022 14:35:53 +0000 Subject: [PATCH] macOS: do not use -Wno-format-truncation, AppleClang does not support it --- src/platforms/hosted/Makefile.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platforms/hosted/Makefile.inc b/src/platforms/hosted/Makefile.inc index bd661db..93ee51d 100644 --- a/src/platforms/hosted/Makefile.inc +++ b/src/platforms/hosted/Makefile.inc @@ -19,7 +19,10 @@ endif CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY) ifeq ($(ASAN), 1) - CFLAGS += -fsanitize=address -Wno-format-truncation + CFLAGS += -fsanitize=address + ifeq (, $(findstring darwin, $(SYS))) + CFLAGS += -Wno-format-truncation + endif LDFLAGS += -fsanitize=address endif