ok
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user