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