|
@@ -77,10 +77,8 @@ def parse_sccache(text: str) -> Tuple[int, int]:
|
|
|
return hits, misses
|
|
|
|
|
|
|
|
|
-def arch_label(platform: str, arch_env: Optional[str]) -> str:
|
|
|
- """Produce a nice arch label; prefer ARCH env when present."""
|
|
|
- if arch_env:
|
|
|
- return arch_env
|
|
|
+def arch_label(platform: str) -> str:
|
|
|
+ """Produce a nice arch label."""
|
|
|
mapping = {
|
|
|
"mac-intel": "Intel",
|
|
|
"mac-arm": "Apple Silicon",
|
|
@@ -100,7 +98,7 @@ def arch_label(platform: str, arch_env: Optional[str]) -> str:
|
|
|
def main() -> int:
|
|
|
# Prefer our explicit PLATFORM env; fall back to VS's "Platform" on Windows if needed.
|
|
|
platform = os.getenv("PLATFORM") or os.getenv("Platform") or "unknown"
|
|
|
- arch = arch_label(platform, os.getenv("ARCH"))
|
|
|
+ arch = arch_label(platform)
|
|
|
tool, cmd, family = detect(platform)
|
|
|
|
|
|
stats_raw = run(cmd)
|
|
@@ -137,4 +135,4 @@ def main() -> int:
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- sys.exit(main())
|
|
|
+ sys.exit(main())
|