From c31005008475f5d908ac9c200a0830e25b2cb989 Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Sat, 20 Jul 2019 17:54:56 +0800 Subject: [PATCH] Allow compiling with asan --- Makefile.libretro | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.libretro b/Makefile.libretro index b1e1d35..7a0b1e2 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -651,6 +651,12 @@ else endif endif +ifneq ($(SANITIZER),) +CFLAGS += -fsanitize=$(SANITIZER) +CXXFLAGS += -fsanitize=$(SANITIZER) +LDFLAGS += -fsanitize=$(SANITIZER) +endif + ifeq ($(EXTERNAL_ZLIB), 1) CFLAGS += -DHAVE_EXTERNAL_ZLIB endif