This commit is contained in:
2026-03-20 00:15:30 +01:00
parent af3c5c0985
commit 4043a67d38

View File

@@ -201,8 +201,14 @@ def _macos_env(p: Platform) -> dict[str, str] | None:
return None
def _platform_features(p: Platform) -> list[str]:
if p.os == "windows":
return ["--features", "asio"]
return []
def build_binary(root: Path, p: Platform, log: list[str], extra_args: list[str] | None = None) -> None:
cmd = [builder_for(p), "build", "--release", *target_flags(p), *(extra_args or [])]
cmd = [builder_for(p), "build", "--release", *target_flags(p), *_platform_features(p), *(extra_args or [])]
log.append(f" Building: {' '.join(extra_args or ['default'])}")
run_cmd(cmd, log, env=_macos_env(p), cwd=root)