irx.builder.runtime.linking
irx.builder.runtime.linking
Source: packages/irx/src/irx/builder/runtime/linking.py
title: Conditional native linking helpers for runtime features.Functions
compile_native_artifacts(artifacts: Sequence[NativeArtifact], build_dir: Path, clang_binary: str='clang', cxx_binary: str='c++') -> NativeLinkInputs
title: Compile or collect native artifacts for linking.
parameters:
artifacts:
type: Sequence[NativeArtifact]
build_dir:
type: Path
clang_binary:
type: str
cxx_binary:
type: str
returns:
type: NativeLinkInputslink_executable(primary_object: Path, output_file: Path, artifacts: Sequence[NativeArtifact], linker_flags: Sequence[str]=(), clang_binary: str='clang', cxx_binary: str='c++') -> None
title: Link the main object file plus optional runtime artifacts.
parameters:
primary_object:
type: Path
output_file:
type: Path
artifacts:
type: Sequence[NativeArtifact]
linker_flags:
type: Sequence[str]
clang_binary:
type: str
cxx_binary:
type: strClasses
NativeLinkInputs
title: Collected native linker inputs for one build.
attributes:
objects:
type: tuple[Path, Ellipsis]
linker_flags:
type: tuple[str, Ellipsis]