diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-25 22:10:52 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-25 22:10:52 +0100 |
| commit | bbf79fc1d4012e7de6fc022778e36ae906f5616c (patch) | |
| tree | 96ff07ab035acff7bb7b6c21c8a174c960a5ca3c | |
| parent | 2af8e956a60a35bb9eab8b6c50d82de2dfe10a9b (diff) | |
Add `ODIN_VERSION_RAW` define to build.bat
| -rw-r--r-- | build.bat | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -27,8 +27,7 @@ if "%2" == "1" ( set odin_version_raw="dev-%curr_year%-%curr_month%" set compiler_flags= -nologo -Oi -TP -fp:precise -Gm- -MP -FC -EHsc- -GR- -GF -set compiler_defines= -rem -DODIN_VERSION_RAW=%odin_version_raw% +set compiler_defines= -DODIN_VERSION_RAW=\"%odin_version_raw%\" for /f %%i in ('git rev-parse --short HEAD') do set GIT_SHA=%%i if %ERRORLEVEL% equ 0 set compiler_defines=%compiler_defines% -DGIT_SHA=\"%GIT_SHA%\" |