(host_platform: str, target_triple: str)
| 473 | |
| 474 | |
| 475 | def clang_toolchain(host_platform: str, target_triple: str) -> str: |
| 476 | if host_platform == "linux_x86_64": |
| 477 | return "llvm-x86_64-linux" |
| 478 | elif host_platform == "linux_aarch64": |
| 479 | return "llvm-aarch64-linux" |
| 480 | elif host_platform == "macos_arm64": |
| 481 | return "llvm-aarch64-macos" |
| 482 | elif host_platform == "macos_x86_64": |
| 483 | return "llvm-x86_64-macos" |
| 484 | else: |
| 485 | raise Exception("unhandled host platform") |
| 486 | |
| 487 | |
| 488 | def compress_python_archive( |
no outgoing calls
no test coverage detected