Check if the target is the native/stub (host) platform.
(environment: str | None)
| 59 | |
| 60 | |
| 61 | def _is_native_platform(environment: str | None) -> bool: |
| 62 | """Check if the target is the native/stub (host) platform.""" |
| 63 | if not environment: |
| 64 | return False |
| 65 | return environment.lower() in ("native", "stub", "host") |
| 66 | |
| 67 | |
| 68 | async def _run_native_autoresearch(args: Args, build_mode: str = "quick") -> int: |