From 66e965f87824784ea2eaab2fff914830973a9f6d Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 12 May 2022 08:05:28 -0400 Subject: [PATCH] Don't include /fsanitize=address in vs 2017 Closes #759 --- sys/windows/Makefile.nmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/windows/Makefile.nmake b/sys/windows/Makefile.nmake index 63b5e78e8..bee1c3d92 100644 --- a/sys/windows/Makefile.nmake +++ b/sys/windows/Makefile.nmake @@ -705,6 +705,12 @@ CL_RECENT=-sdl ! ENDIF !ENDIF +!IF ($(VSVER) >= 2019) +ASAN=/fsanitize=address +!ELSE +ASAN= +!ENDIF + #========================================== # More compiler setup post-macros #========================================== @@ -723,7 +729,7 @@ ccommon= -c -nologo -D"_CONSOLE" -D"_CRT_NONSTDC_NO_DEPRECATE" -D"_CRT_SECURE_NO -DHAS_STDINT_H -DHAS_INLINE $(CURSESDEF) $(RUNTIMEOPTDEF) \ -EHsc -fp:precise -Gd -GF -GS -Gy \ $(CL_RECENT) -WX- -Zc:forScope -Zc:wchar_t -Zi -cdebug= -analyze- -D"_DEBUG" -MTd -RTC1 -Od /fsanitize=address +cdebug= -analyze- -D"_DEBUG" -MTd -RTC1 -Od $(ASAN) crelease= -analyze- -D"_MBCS" -errorReport:prompt -MT -O2 -Ot -Ox -Oy lcommon= /NOLOGO /INCREMENTAL:NO