Skip to content

Commit b1d626e

Browse files
committed
Support overriding the git hash
1 parent 6d2d1a3 commit b1d626e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ SET vspath=%%F
77
)
88
set VSCMD_START_DIR=%1
99
CALL "%vspath%\VC\Auxiliary\Build\vcvarsall.bat" x64
10-
just build_dist %2
10+
just build_dist %2 %3

vcpkg.just

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ clear_cache:
2929

3030
# will invoke just build_dist but first activates the visual studio environment
3131
[windows]
32-
dist triplet=VCPKG_DEFAULT_TRIPLET:
33-
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}' '{{triplet}}'
32+
dist triplet=VCPKG_DEFAULT_TRIPLET git_hash=`git rev-parse HEAD`:
33+
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}' '{{triplet}}' {{git_hash}}
3434

3535
[unix]
3636
dist triplet=VCPKG_DEFAULT_TRIPLET: (build_dist triplet)

0 commit comments

Comments
 (0)