MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / resolve_target_arch

Function resolve_target_arch

Tools/Support/PortableMSVCWrapper.py:102–106  ·  view source on GitHub ↗
(script_path: Path)

Source from the content-addressed store, hash-verified

100
101
102def 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
109def resolve_sdk_tool_arch(target_arch: str):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected