(script_path: Path)
| 100 | |
| 101 | |
| 102 | def resolve_target_arch(script_path: Path): |
| 103 | target_arch = script_path.parent.name.lower() |
| 104 | if target_arch not in ("x64", "arm64"): |
| 105 | raise RuntimeError(f"Unsupported MSVC wrapper target directory: {target_arch}") |
| 106 | return target_arch |
| 107 | |
| 108 | |
| 109 | def resolve_sdk_tool_arch(target_arch: str): |