Determine the target triple for the WASI host build.
(context)
| 318 | |
| 319 | |
| 320 | def 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) |
no test coverage detected
searching dependent graphs…