improve build info

main
Dominik Madarász 2024-08-16 14:03:27 +02:00
parent ba0ac1fae0
commit 3447eaacc9
1 changed files with 5 additions and 1 deletions

View File

@ -902,9 +902,13 @@ git rev-list --count --first-parent HEAD > info.obj
set /p GIT_REVISION=<info.obj
git rev-parse --abbrev-ref HEAD > info.obj
set /p GIT_BRANCH=<info.obj
git describe --tags --abbrev=0 > info.obj
set /p GIT_TAG=<info.obj
date /t > info.obj
set /p LAST_MODIFIED=<info.obj
set args=-DBUILD_VERSION="\"!GIT_BRANCH!-!GIT_REVISION!-!build!-!dll!\"" !args!
git rev-parse --short HEAD > info.obj
set /p GIT_HASH=<info.obj
set args=-DBUILD_VERSION="\"!LAST_MODIFIED!!GIT_BRANCH!-!GIT_REVISION!-!GIT_TAG!-!GIT_HASH!-!build!-!dll!\"" !args!
if "!cc!"=="tcc" set "cc=call tools\tcc"