-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
feat(cc toolchain): support external_include_paths on macos #21949
feat(cc toolchain): support external_include_paths on macos #21949
Conversation
The external_include_paths feature on mac enables specifying include paths locally with -I and with -isystem when the project is included as an external repo. This makes it possible to set -Werror against your own headers for development without propagating this to consumers of your libraries. For some reason this was only previously enabled on linux.
Cc @keith |
interesting. this doesn't exist in the apple_support toolchain today either. what ends up propagating things as external headers? |
It works with So you use that^ to specify include paths and locally they get compiled with Using the |
also added this here: bazelbuild/apple_support#327 |
@bazel-io flag |
@bazel-io fork 7.2.0 |
The external_include_paths feature enables specifying include paths locally with -I and with -isystem when the project is included as an external repo. This makes it possible to set -Werror against your own headers for development without propagating this to consumers of your libraries. For some reason this was only previously enabled on linux. I do not see a reason for not also enabling it on macos. Closes bazelbuild#21949. PiperOrigin-RevId: 634394452 Change-Id: I0df91b2a2c9b4a5bd52b22e64f99ea0745cb9759
…22413) The external_include_paths feature enables specifying include paths locally with -I and with -isystem when the project is included as an external repo. This makes it possible to set -Werror against your own headers for development without propagating this to consumers of your libraries. For some reason this was only previously enabled on linux. I do not see a reason for not also enabling it on macos. Closes #21949. PiperOrigin-RevId: 634394452 Change-Id: I0df91b2a2c9b4a5bd52b22e64f99ea0745cb9759 Commit d831214 Co-authored-by: Isaac Torres <isaac@isaactorz.dev>
The external_include_paths feature enables specifying include paths locally with -I and with -isystem when the project is included as an external repo.
This makes it possible to set -Werror against your own headers for development without propagating this to consumers of your libraries.
For some reason this was only previously enabled on linux. I do not see a reason for not also enabling it on macos.