Skip to content

Commit 0cb75cb

Browse files
committed
Support triplet specification for dist targets
1 parent b9bee5b commit 0cb75cb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

dist.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ REM Print the first argument of the script
55
FOR /F "tokens=* USEBACKQ" %%F IN (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property InstallationPath`) DO (
66
SET vspath=%%F
77
)
8-
ECHO %vspath%
9-
ECHO %1
108
set VSCMD_START_DIR=%1
119
CALL "%vspath%\VC\Auxiliary\Build\vcvarsall.bat" x64
12-
just build_dist
10+
just build_dist %2

vcpkg.just

Lines changed: 3 additions & 3 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:
33-
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}'
32+
dist triplet=VCPKG_DEFAULT_TRIPLET:
33+
cmd.exe /C '{{source_directory()}}/dist.bat' '{{justfile_directory()}}' '{{triplet}}'
3434

3535
[unix]
36-
dist: build_dist
36+
dist triplet=VCPKG_DEFAULT_TRIPLET: (build_dist triplet)

0 commit comments

Comments
 (0)