Build binutils in the Docker image.
(client, image, host_platform)
| 290 | |
| 291 | |
| 292 | def build_binutils(client, image, host_platform): |
| 293 | """Build binutils in the Docker image.""" |
| 294 | archive = download_entry("binutils", DOWNLOADS_PATH) |
| 295 | |
| 296 | with build_environment(client, image) as build_env: |
| 297 | build_env.copy_file(archive) |
| 298 | build_env.copy_file(SUPPORT / "build-binutils.sh") |
| 299 | |
| 300 | env = {"BINUTILS_VERSION": DOWNLOADS["binutils"]["version"]} |
| 301 | |
| 302 | add_env_common(env) |
| 303 | |
| 304 | build_env.run( |
| 305 | "build-binutils.sh", |
| 306 | environment=env, |
| 307 | ) |
| 308 | |
| 309 | build_env.get_tools_archive( |
| 310 | toolchain_archive_path("binutils", host_platform), "host" |
| 311 | ) |
| 312 | |
| 313 | |
| 314 | def materialize_clang(host_platform: str, target_triple: str): |
no test coverage detected