This commit is contained in:
2026-03-20 00:17:18 +01:00
parent 4043a67d38
commit 5c5488a9f0

View File

@@ -207,8 +207,9 @@ def _platform_features(p: Platform) -> list[str]:
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), *_platform_features(p), *(extra_args or [])]
def build_binary(root: Path, p: Platform, log: list[str], extra_args: list[str] | None = None, platform_features: bool = True) -> None:
features = _platform_features(p) if platform_features else []
cmd = [builder_for(p), "build", "--release", *target_flags(p), *features, *(extra_args or [])]
log.append(f" Building: {' '.join(extra_args or ['default'])}")
run_cmd(cmd, log, env=_macos_env(p), cwd=root)
@@ -228,7 +229,7 @@ def _bundle_plugins_native(root: Path, p: Platform, log: list[str]) -> None:
def _bundle_plugins_cross(root: Path, p: Platform, log: list[str]) -> None:
log.append(" Bundling plugins (cross)")
build_binary(root, p, log, extra_args=["-p", PLUGIN_NAME])
build_binary(root, p, log, extra_args=["-p", PLUGIN_NAME], platform_features=False)
rd = release_dir(root, p)
if p.os == "linux":