Skip to content

//ll:outputs.bzl

Action outputs.

compile_object_outputs

compile_object_outputs(ctx, in_file)

Given a compilable file, return an output name for the compiled object.

parameters

Name Description
ctx The rule context.
in_file A file.

returns

A tuple (out_file, cdf). Outputs end with .o/.cdf or .interface.o/.interface.cdf, if in_file has a .pcm extension.

create_archive_library_outputs

create_archive_library_outputs(ctx)

For a label filename return a file filename.a.

parameters

Name Description
ctx

link_executable_outputs(ctx)

For a label filename return a file of the same name.

parameters

Name Description
ctx

link_shared_object_outputs(ctx)

For a label filename return a file filename.so.

parameters

Name Description
ctx

ll_artifact

ll_artifact(ctx, filename)

Return a string of the form "{ctx.label.name}/filename".

Encapsulate intermediary build artifacts to avoid name clashes for files of the same name built by targets in the same build invocation.

parameters

Name Description
ctx The build context.
filename defaults to None.

An optional string representing a filename. If omitted, creates a path of the form "{ctx.label.name}".

precompile_interface_outputs

precompile_interface_outputs(ctx, in_file)

Given a file f.cppm return files f.pcm and f.pcm.cdf.

parameters

Name Description
ctx The rule context.
in_file A file.

returns

A tuple (out_file, cdf).