MCPcopy Index your code
hub / github.com/astral-sh/python-build-standalone / clang_toolchain

Function clang_toolchain

pythonbuild/utils.py:475–485  ·  view source on GitHub ↗
(host_platform: str, target_triple: str)

Source from the content-addressed store, hash-verified

473
474
475def 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
488def compress_python_archive(

Callers 6

materialize_clangFunction · 0.90
python_build_infoFunction · 0.90
build_cpythonFunction · 0.90
write_triples_makefilesFunction · 0.85
install_toolchainMethod · 0.85
install_toolchainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected