2016-01-06 15:39:15 +00:00
|
|
|
@echo off
|
|
|
|
|
2016-08-28 04:31:06 +00:00
|
|
|
call "ctime" -begin 4ed_data.ctm
|
|
|
|
|
|
|
|
SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd4610 /wd4390 /WX
|
2016-11-02 03:27:51 +00:00
|
|
|
SET OPTS=%OPTS% /GR- /EHa- /nologo /FC
|
2016-08-28 04:31:06 +00:00
|
|
|
|
|
|
|
SET FirstError=0
|
|
|
|
|
2016-09-05 02:59:02 +00:00
|
|
|
SET BUILD_MODE=%1
|
2016-09-05 01:27:37 +00:00
|
|
|
if "%BUILD_MODE%" == "" (SET BUILD_MODE="/DDEV_BUILD")
|
|
|
|
|
2016-08-28 04:31:06 +00:00
|
|
|
pushd ..\build
|
2017-01-07 02:59:55 +00:00
|
|
|
cl %OPTS% ..\code\meta\build.cpp /Zi /Febuild %BUILD_MODE%
|
2016-08-28 04:31:06 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
2017-01-07 02:59:55 +00:00
|
|
|
if %ERRORLEVEL% neq 0 (goto END)
|
2016-08-28 04:31:06 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
..\build\build
|
|
|
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
|
|
|
|
2017-01-23 06:19:43 +00:00
|
|
|
:END
|
2016-09-05 01:27:37 +00:00
|
|
|
call "ctime" -end 4ed_data.ctm %FirstError%
|