-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use --features=external_include_paths for Bazel builds to allow angle-bracketed includes. #4640
base: main
Are you sure you want to change the base?
Conversation
4f4e69f
to
bb95bee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find!
Do you now if everyone depending on p4c using bazel will also have to set |
The question is whether parameters defined in |
(The Altera/Intel compiler is not using Bazel.) |
abseil/abseil-cpp#1637 (comment) back to the drawing board... On an unrelated note: Here is an amusing read of someone trying to fix Protobuf's quote includes: https://rachelbythebay.com/w/2024/04/29/pb/ |
Looks like you have already determined that the answer is likely no. We can also find out easily empirically, by running the following experiment:
Note that |
bb95bee
to
95b605b
Compare
Did that and, as expected, the test fails. Unfortunate. |
This reverts commit a0520c8.
95b605b
to
ff7fb61
Compare
Reintroduce the system includes and use a trick suggested in abseil/abseil-cpp#1637 (comment). We can add the feature flag
--features=external_include_paths
which enables system includes.This is a newish feature: bazelbuild/bazel@08936ae