mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-23 06:12:22 -08:00
build linker with branch name and full commit hash
This commit is contained in:
1 parent
eba7500f73
commit
c5d198e3e9
2 files changed
+4
-2
No files matched your search
@@ -87,7 +87,9 @@ pushd build
|
||||
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 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]
|
||||
|
||||
Reference in new issue
Block a user