macOS: do not use -Wno-format-truncation, AppleClang does not support it
This commit is contained in:
parent
a23ba218a7
commit
bb058d8f35
|
@ -19,7 +19,10 @@ endif
|
||||||
CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY)
|
CFLAGS += -DHOSTED_BMP_ONLY=$(HOSTED_BMP_ONLY)
|
||||||
|
|
||||||
ifeq ($(ASAN), 1)
|
ifeq ($(ASAN), 1)
|
||||||
CFLAGS += -fsanitize=address -Wno-format-truncation
|
CFLAGS += -fsanitize=address
|
||||||
|
ifeq (, $(findstring darwin, $(SYS)))
|
||||||
|
CFLAGS += -Wno-format-truncation
|
||||||
|
endif
|
||||||
LDFLAGS += -fsanitize=address
|
LDFLAGS += -fsanitize=address
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue