add sanitizer option to libretro makefile

This commit is contained in:
Brad Parker 2017-02-09 21:07:34 -05:00
parent fddcf2a166
commit d86d3ad4e6

View File

@ -296,6 +296,12 @@ else
CXXFLAGS += -O3 -fno-exceptions -fno-rtti -DHAVE_STDINT_H
endif
ifneq ($(SANITIZER),)
CFLAGS += -fsanitize=$(SANITIZER)
CXXFLAGS += -fsanitize=$(SANITIZER)
LDFLAGS += -fsanitize=$(SANITIZER)
endif
CXXFLAGS += -std=c++98
CORE_DIR := libgambatte/src