Extensions > API reference > LinkingContext

LinkingContext

Immutable store of information needed for C++ linking that is aggregated across dependencies.

additional_inputs

depset LinkingContext.additional_inputs

Deprecated. This API is deprecated and will be removed soon. Please do not depend on it. It is disabled with ---incompatible_require_linker_input_cc_api. Use this flag to verify your code is compatible with its imminent removal.
Returns the depset of additional inputs, e.g.: linker scripts.

unknown LinkingContext.libraries_to_link

Deprecated. This API is deprecated and will be removed soon. Please do not depend on it. It is disabled with ---incompatible_require_linker_input_cc_api. Use this flag to verify your code is compatible with its imminent removal.
Returns the depset of LibraryToLink. May return a list but this isdeprecated. See #8118.

linker_inputs

depset LinkingContext.linker_inputs

Returns the depset of linker inputs.

sequence LinkingContext.user_link_flags

Deprecated. This API is deprecated and will be removed soon. Please do not depend on it. It is disabled with ---incompatible_require_linker_input_cc_api. Use this flag to verify your code is compatible with its imminent removal.
Returns the list of user link flags passed as strings.