]> granicus.if.org Git - nethack/commitdiff
Don't include /fsanitize=address in vs 2017
authornhmall <nhmall@nethack.org>
Thu, 12 May 2022 12:05:28 +0000 (08:05 -0400)
committernhmall <nhmall@nethack.org>
Thu, 12 May 2022 12:05:28 +0000 (08:05 -0400)
Closes #759

sys/windows/Makefile.nmake

index 63b5e78e8de15ffe55691a526ceba00b2aa1ce6d..bee1c3d9217d75e13c3bfc5e81b9d4a9a7182941 100644 (file)
@@ -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