rules_cc
rules_cc copied to clipboard
Add local_includes to cc_library / cc_binary
This new attribute solves one of the longstanding annoyances with
private include paths for third party projects. Today users often
hardcode -Iexternal/something or come up with some complicated
workarounds with custom rules vending make variables or
implementation_deps
This attribute is named after, and has the same semantics, as defines
vs local_defines. These paths are only used in the context of the rule
that they are on.
Fixes https://github.com/bazelbuild/bazel/issues/16472