macOS: do not use -Wno-format-truncation, AppleClang does not support it

This commit is contained in:
L. E. Segovia 2022-08-28 14:35:53 +00:00 committed by Rachel Mant
parent a23ba218a7
commit bb058d8f35
1 changed files with 4 additions and 1 deletions

View File

@ -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