MCPcopy
hub / github.com/astral-sh/python-build-standalone / build_binutils

Function build_binutils

cpython-unix/build.py:292–311  ·  view source on GitHub ↗

Build binutils in the Docker image.

(client, image, host_platform)

Source from the content-addressed store, hash-verified

290
291
292def 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
314def materialize_clang(host_platform: str, target_triple: str):

Callers 1

mainFunction · 0.85

Calls 7

download_entryFunction · 0.90
build_environmentFunction · 0.90
add_env_commonFunction · 0.90
toolchain_archive_pathFunction · 0.85
copy_fileMethod · 0.45
runMethod · 0.45
get_tools_archiveMethod · 0.45

Tested by

no test coverage detected