diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-09-14 18:31:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 18:31:33 +0100 |
| commit | 61efbf86842e28b78929d501ded7afddf9db0764 (patch) | |
| tree | c261df8022ae02dbbc498cac7550e3dd0c150704 /build.bat | |
| parent | 1012055ba99ffda0b30e5b0f3cdf59a3d6173f89 (diff) | |
| parent | da14292369b0e7042aedddfb4a8525583c3605b4 (diff) | |
Merge pull request #1168 from odin-lang/vendor-stb
`vendor:stb` - Add stb libraries (image+image_write, rect_pack, truetype)
Diffstat (limited to 'build.bat')
| -rw-r--r-- | build.bat | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,7 +3,7 @@ setlocal EnableDelayedExpansion for /f "usebackq tokens=1,2 delims=,=- " %%i in (`wmic os get LocalDateTime /value`) do @if %%i==LocalDateTime ( - set CURR_DATE_TIME=%%j + set CURR_DATE_TIME=%%j ) set curr_year=%CURR_DATE_TIME:~0,4% @@ -23,9 +23,9 @@ if "%1" == "1" ( :: Normal = 0, CI Nightly = 1 if "%2" == "1" ( - set nightly=1 + set nightly=1 ) else ( - set nightly=0 + set nightly=0 ) set odin_version_raw="dev-%curr_year%-%curr_month%" @@ -69,8 +69,11 @@ del *.pdb > NUL 2> NUL del *.ilk > NUL 2> NUL cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name% +if %errorlevel% neq 0 goto end_of_build +call build_vendor.bat if %errorlevel% neq 0 goto end_of_build + if %release_mode% EQU 0 odin run examples/demo del *.obj > NUL 2> NUL |