mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-09 23:27:23 +02:00
ci: Match VCPKG_HOST_TRIPLET to VCPKG_TARGET_TRIPLET
Using a non-default target triplet introduced a regression because packages with `"host": true` in their vcpkg configurations were still picking up the default `x64-windows` triplet, effectively building both release and debug packages. Fix this regression by setting `VCPKG_HOST_TRIPLET` explicitly.
This commit is contained in:
5
.github/ci-windows.py
vendored
5
.github/ci-windows.py
vendored
@@ -72,6 +72,11 @@ def generate(ci_type):
|
||||
"build",
|
||||
"-Werror=dev",
|
||||
"--preset=vs2026",
|
||||
# Using x64-windows-release for both host and target triplets
|
||||
# to ensure vcpkg builds only release packages, thereby optimizing
|
||||
# build time.
|
||||
# See https://github.com/microsoft/vcpkg/issues/50927.
|
||||
"-DVCPKG_HOST_TRIPLET=x64-windows-release",
|
||||
"-DVCPKG_TARGET_TRIPLET=x64-windows-release",
|
||||
] + GENERATE_OPTIONS[ci_type]
|
||||
if run(command, check=False).returncode != 0:
|
||||
|
||||
Reference in New Issue
Block a user