IMPORTANT: The Bazel docs have moved! Please update your bookmark to

You can read about the migration, and let us know what you think.

Extensions > API reference > LinkerInput


Either libraries, flags or other files that may be passed to the linker as inputs.


sequence LinkerInput.additional_inputs

Returns the depset of additional inputs, e.g.: linker scripts.


sequence LinkerInput.libraries

Returns the depset of LibraryToLink. May return a list but this is deprecated. See #8118.


Label LinkerInput.owner

Returns the owner of this LinkerInput.

sequence LinkerInput.user_link_flags

Returns the list of user link flags passed as strings.