updated build.sh to define git hash

This commit is contained in:
Nikita Smith
2024-11-08 11:43:05 -08:00
parent 69b43c76d4
commit 776c8daa27
3 changed files with 7 additions and 4 deletions
-1
View File
@@ -89,7 +89,6 @@ popd
:: --- Get Current Git Commit Id ----------------------------------------------
for /f %%i in ('call git describe --always --dirty') do set compile=%compile% -DBUILD_GIT_HASH=\"%%i\"
for /f %%i in ('call git rev-parse HEAD') do set compile=%compile% -DBUILD_GIT_HASH_FULL=\"%%i\"
for /f %%i in ('call git rev-parse --abbrev-ref HEAD') do set compile=%compile% -DBUILD_GIT_BRANCH=\"%%i\"
:: --- Build & Run Metaprogram ------------------------------------------------
if "%no_meta%"=="1" echo [skipping metagen]