Allow cross-compilation without Docker when using vcpkg

This commit is contained in:
Janek Bevendorff 2025-03-10 17:58:24 +01:00
parent 51c54a1876
commit 3672bbb879
No known key found for this signature in database
GPG Key ID: 2CF41D2AA8438F99

View File

@ -640,10 +640,10 @@ class Build(Command):
urlretrieve(url, outfile)
outfile.chmod(outfile.stat().st_mode | stat.S_IEXEC)
def build_linux(self, version, src_dir, output_dir, *, install_prefix, parallelism, cmake_opts,
def build_linux(self, version, src_dir, output_dir, *, install_prefix, parallelism, cmake_opts, use_system_deps,
platform_target, appimage, docker_image, **_):
if platform_target != platform.uname().machine and not docker_image:
raise Error('Need --docker-image for cross-platform compilation!')
if use_system_deps and platform_target != platform.uname().machine and not docker_image:
raise Error('Need --docker-image for cross-platform compilation when not building with vcpkg!')
docker_args = dict(
docker_image=docker_image,