diff --git a/scripts/build.py b/scripts/build.py index c3a6f76..ed3b5ae 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -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)