The flag is for the compiler. I just made a typo with the flag name: copypasted from google. I am sorry for the misguide :)
Anyway, the day is 31, and what I am saying, this compiler flag is among Casey's:
| set CommonCompilerFlags=-MTd -nologo -Gm- -GR- -EHa- -Od -Oi [b]-WX[/b] -W4 ... etc
|
But he does not get any warnings, so I want it to be cleared and brought to the surface.
==== ==== ==== ==== ==== ==== ==== ====
As a matter of fact, I modify his build batch files:
"setup.bat"
| @echo off
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
|
"build.bat"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 | @echo off
set cl_path=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin
set CommonCompilerFlags=-MTd -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W4 -wd4201 -wd4100 -wd4189 -wd4505 -DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1 -DHANDMADE_WIN32=1 -FC -Z7
set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib
REM TODO - can we just build both with one exe?
REM 32-bit build
REM "%cl_path%\cl" %CommonCompilerFlags% ..\code\win32_handmade.cpp /link -subsystem:windows,5.1 %CommonLinkerFlags%
REM 64-bit build
del *.pdb > NUL 2> NUL
REM Optimization switches /O2 /Oi /fp:fast
"%cl_path%\cl" %CommonCompilerFlags% ..\code\handmade.cpp -Fmhandmade.map -LD /link -incremental:no -opt:ref -PDB:handmade_%random%.pdb -EXPORT:GameGetSoundSamples -EXPORT:GameUpdateAndRender
"%cl_path%\cl" %CommonCompilerFlags% ..\code\win32_handmade.cpp -Fmwin32_handmade.map /link %CommonLinkerFlags%
|
usage is simple:
- open command line
- setup once
- build when needed