I do have /Z7 flag enabled instead of /Zi.
This is my build.bat:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | @echo off
IF NOT EXIST ..\build mkdir ..\build
pushd ..\build
del *.pdb 1> NUL 2> NUL
ctime -begin monter.ctm
REM Compile the executable -----------------------------------------------
set Macros=-DMONTER_FAST=0 -DMONTER_LOW_SETTING=0 -DMONTER_DEBUG=1
set CompilerFlags=-MT -nologo -FC -Z7 -W4 -WX -Od -wd4100 -wd4003 -wd4127 -wd4505 -wd4201 -wd4189 -wd4996 -wd4005
set LinkerFlags=-incremental:no user32.lib gdi32.lib winmm.lib Opengl32.lib shell32.lib
cl %CompilerFlags% %Macros% -I ..\code\3rd\. ..\code\win32_main.cpp /link %LinkerFlags%
ctime -end monter.ctm
popd
|
And I use basically the same setup that is done in handmade hero