Meta: Correctly bootstrap vcpkg on musl libc systems

This commit is contained in:
Undefine
2025-12-19 21:51:31 +01:00
committed by Andrew Kaster
parent f6a7df78e7
commit f27847274c

View File

@@ -8,6 +8,7 @@
import json import json
import os import os
import pathlib import pathlib
import platform
import subprocess import subprocess
@@ -40,7 +41,12 @@ def build_vcpkg():
subprocess.check_call(args=["git", "checkout", git_rev], cwd=vcpkg_checkout) subprocess.check_call(args=["git", "checkout", git_rev], cwd=vcpkg_checkout)
bootstrap_script = "bootstrap-vcpkg.bat" if os.name == "nt" else "bootstrap-vcpkg.sh" bootstrap_script = "bootstrap-vcpkg.bat" if os.name == "nt" else "bootstrap-vcpkg.sh"
subprocess.check_call(args=[vcpkg_checkout / bootstrap_script, "-disableMetrics"], cwd=vcpkg_checkout) arguments = [vcpkg_checkout / bootstrap_script, "-disableMetrics"]
libc, _ = platform.libc_ver()
if libc == "musl":
arguments.append("-musl")
subprocess.check_call(args=arguments, cwd=vcpkg_checkout)
def main(): def main():