[bazel.build] Problem with /reference/be/c-cpp #20504
Labels
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
team-Rules-CPP
Issues for C++ rules
type: documentation (cleanup)
untriaged
Page link:
https://bazel.build/reference/be/c-cpp
Problem description (include actual vs expected text, if applicable):
The documentation is relevant for only the latest version of Bazel. However, many users of Bazel are not using the most recent version for various reasons. As such, it is impossible to know from the documentation what features are supported by the version of Bazel being used. For example, the
additional_linker_inputs
attribute was added tocc_library
in version 6.4.0 (via this PR), but a user with an older version of Bazel can only determine this by attempting to use the attribute and the receiving an error indicating thatno such attribute 'additional_linker_inputs' in 'cc_library' rule
.It would be great if the various features could indicate the minimum required Bazel version. As an example, the description for the
additional_linker_inputs
attribute could be modified to be:Where do you see this issue? (include link to specific section of the page, if applicable)
For the
additional_linker_inputs
example given, the issue is in the Attributes table within the Arguments section.Any other information you'd like to share?
If implemented, this suggestion should be applied to all Bazel documentation.
The text was updated successfully, but these errors were encountered: