Fix Debug-mode builds with win64.mak
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 3 Jun 2014 12:38:28 +0000 (15:38 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 3 Jun 2014 12:38:28 +0000 (15:38 +0300)
It apparently hasn't worked for a very long time. Copy some tricks from
the already-deleted win32.mak to make it work: Use /MDd rather than /MD
when compiling in Debug mode, and replace /GZ with /RTC1, to silence a
deprecation warning from the compiler

win64.mak

index 68bcd4791bfddaf3a2241b9ef5df0f1632170ac0..856b4bee891e8220705b1d26be789d3202ed968a 100755 (executable)
--- a/win64.mak
+++ b/win64.mak
@@ -48,7 +48,12 @@ CFG=Release
 #  Please replace the default options from the commandline if necessary
 #
 !IFNDEF    CUSTOMCLOPT
-CUSTOMCLOPT=/nologo /MD /W3 /wd4018 /EHsc
+CUSTOMCLOPT=/nologo /W3 /wd4018 /EHsc
+!IF  "$(CFG)" == "Release"
+CUSTOMCLOPT=$(CUSTOMCLOPT) /MD
+!ELSE
+CUSTOMCLOPT=$(CUSTOMCLOPT) /MDd
+!ENDIF
 !ELSE
 !MESSAGE CL option $(CUSTOMCLOPT) specified
 !ENDIF
@@ -214,7 +219,7 @@ CPP_PROJ=$(CUSTOMCLOPT) $(INC_OPT) /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRD
 !IF  "$(CFG)" == "Release"
 CPP_PROJ=$(CPP_PROJ) /O2 /D "NDEBUG"
 !ELSEIF  "$(CFG)" == "Debug"
-CPP_PROJ=$(CPP_PROJ) /Gm /ZI /Od /D "_DEBUG" /GZ
+CPP_PROJ=$(CPP_PROJ) /Gm /ZI /Od /D "_DEBUG" /RTC1
 !ENDIF
 
 .c{$(INTDIR)}.obj::