bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Feature Request: Private Includes

Open adamhowardprice opened this issue 9 years ago • 3 comments

cc @dflems, plz fill in more info

adamhowardprice avatar Mar 27 '17 15:03 adamhowardprice

Basically, this is to request the same functionality provided by includes, but to add relative header search paths to the compiler flags only for the current library and not export the flag to any libraries that depend on it. Right now, this can be accomplished by manually adding copts like -Ipath/too/foo, but that's not exactly compiler independent, and the flag must be relative to the workspace root rather than the current BUILD file.

If this cannot be added for whatever reason, it would be nice to have a make substitution value that expands to the workspace-relative directory the current BUILD file is in so one could set copts like -I$(HERE)/foo instead of -Ipath/to/foo

dflems avatar Mar 28 '17 03:03 dflems

This actually appears to be a dupe of #2670 (I thought I had commented on this matter before, but couldn't find it in a search)

dflems avatar Mar 28 '17 04:03 dflems

Let's mark it as duplicate of #2670 and close it

steren avatar Mar 28 '17 16:03 steren