add address sanitizer support
This commit is contained in:
parent
5660b762c0
commit
39c352c89b
@ -53,6 +53,12 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(SANITIZER),)
|
||||||
|
CFLAGS := -fsanitize=$(SANITIZER) $(CFLAGS)
|
||||||
|
CXXFLAGS := -fsanitize=$(SANITIZER) $(CXXFLAGS)
|
||||||
|
LDFLAGS := -fsanitize=$(SANITIZER) $(LDFLAGS) -lasan
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(platform), osx)
|
ifeq ($(platform), osx)
|
||||||
ifndef ($(NOUNIVERSAL))
|
ifndef ($(NOUNIVERSAL))
|
||||||
CFLAGS += $(ARCHFLAGS)
|
CFLAGS += $(ARCHFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user