From 3840ee8ee7effa6d122fd937f0af0f314e0e7b2a Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 10 Apr 2020 17:21:17 -0700 Subject: [PATCH] Add MSVC ASan support --- globaldefs.pri | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/globaldefs.pri b/globaldefs.pri index c71fa991..7b61e469 100644 --- a/globaldefs.pri +++ b/globaldefs.pri @@ -9,5 +9,9 @@ CONFIG(release, debug|release) { DEFINES += NDEBUG } -# Enable ASan if desired -#CONFIG += sanitizer sanitize_address \ No newline at end of file +# Enable ASan for Linux or macOS +#CONFIG += sanitizer sanitize_address + +# Enable ASan for Windows +#QMAKE_CFLAGS += /fsanitize=address /MD +#LIBS += clang_rt.asan_dynamic-i386.lib clang_rt.asan_dynamic_runtime_thunk-i386.lib