MCPcopy Index your code
hub / github.com/python/cpython / host_triple

Function host_triple

Platforms/WASI/_build.py:320–330  ·  view source on GitHub ↗

Determine the target triple for the WASI host build.

(context)

Source from the content-addressed store, hash-verified

318
319
320def host_triple(context):
321 """Determine the target triple for the WASI host build."""
322 if context.host_triple:
323 return context.host_triple
324
325 with (HERE / "config.toml").open("rb") as file:
326 config = tomllib.load(file)
327
328 # Cache the result.
329 context.host_triple = config["targets"]["host-triple"]
330 return context.host_triple
331
332
333@subdir(lambda context: CROSS_BUILD_DIR / host_triple(context), clean_ok=True)

Callers 1

configure_wasi_pythonFunction · 0.85

Calls 2

openMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…