(
settings, client, image, host_platform, target_triple, build_options, dest_archive
)
| 358 | |
| 359 | |
| 360 | def build_libedit( |
| 361 | settings, client, image, host_platform, target_triple, build_options, dest_archive |
| 362 | ): |
| 363 | libedit_archive = download_entry("libedit", DOWNLOADS_PATH) |
| 364 | |
| 365 | with build_environment(client, image) as build_env: |
| 366 | if settings.get("needs_toolchain"): |
| 367 | build_env.install_toolchain( |
| 368 | BUILD, |
| 369 | host_platform, |
| 370 | target_triple, |
| 371 | binutils=install_binutils(host_platform), |
| 372 | clang=True, |
| 373 | musl="musl" in target_triple, |
| 374 | static="static" in build_options, |
| 375 | ) |
| 376 | |
| 377 | build_env.install_artifact_archive( |
| 378 | BUILD, "ncurses", target_triple, build_options |
| 379 | ) |
| 380 | build_env.copy_file(libedit_archive) |
| 381 | build_env.copy_file(SUPPORT / "build-libedit.sh") |
| 382 | |
| 383 | env = { |
| 384 | "LIBEDIT_VERSION": DOWNLOADS["libedit"]["version"], |
| 385 | } |
| 386 | |
| 387 | add_target_env(env, host_platform, target_triple, build_env, build_options) |
| 388 | |
| 389 | build_env.run("build-libedit.sh", environment=env) |
| 390 | build_env.get_tools_archive(dest_archive, "deps") |
| 391 | |
| 392 | |
| 393 | def build_cpython_host( |
no test coverage detected