Skip to content

Commit

Permalink
feat(cc toolchain): support external_include_paths on macos
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jungleraptor authored and bazel-io committed May 16, 2024
1 parent d98b02e commit 1332567
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/cpp/unix_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ def _impl(ctx):
default_link_flags_feature,
user_link_flags_feature,
default_link_libs_feature,
external_include_paths_feature,
fdo_optimize_feature,
dbg_feature,
opt_feature,
Expand Down

0 comments on commit 1332567

Please sign in to comment.