From: nhmall Date: Thu, 12 May 2022 12:05:28 +0000 (-0400) Subject: Don't include /fsanitize=address in vs 2017 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66e965f87824784ea2eaab2fff914830973a9f6d;p=nethack Don't include /fsanitize=address in vs 2017 Closes #759 --- 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