aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-25 22:10:52 +0100
committergingerBill <bill@gingerbill.org>2021-04-25 22:10:52 +0100
commitbbf79fc1d4012e7de6fc022778e36ae906f5616c (patch)
tree96ff07ab035acff7bb7b6c21c8a174c960a5ca3c
parent2af8e956a60a35bb9eab8b6c50d82de2dfe10a9b (diff)
Add `ODIN_VERSION_RAW` define to build.bat
-rw-r--r--build.bat3
1 files changed, 1 insertions, 2 deletions
diff --git a/build.bat b/build.bat
index 782ce4e91..9ecc23391 100644
--- a/build.bat
+++ b/build.bat
@@ -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%\"