rules_cc icon indicating copy to clipboard operation
rules_cc copied to clipboard

Add local_includes to cc_library / cc_binary

Open keith opened this issue 1 month ago • 0 comments

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

keith avatar Dec 19 '25 23:12 keith