diff options
author | 2016-12-16 21:10:39 +0000 | |
---|---|---|
committer | 2016-12-16 22:50:26 +0000 | |
commit | 5fd91e2f6b4da737f3b7fa2915aa3017558e2e9f (patch) | |
tree | a8dc5f361c85daf01a14ab9452ce83bad1a0b582 /src | |
parent | 8c83db0676104eb3c04fe7e7ced21113853ba069 (diff) |
Fix build documentation for C++ includes
Blaze and Bazel each use -isystem rather than -I when specifying "includes" for cc_* rules. This distinction matters, e.g. for which warnings are enabled. Update documentation to reflect the current state of the world.
RELNOTES:
Update "-I" to "-isystem" in documentation to reflect current behavior.
--
PiperOrigin-RevId: 142290840
MOS_MIGRATED_REVID=142290840
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcIncLibraryRule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcIncLibraryRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcIncLibraryRule.java index 2eac05574f..d4644ba3d5 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcIncLibraryRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcIncLibraryRule.java @@ -51,7 +51,7 @@ public final class BazelCcIncLibraryRule implements RuleDefinition { <p> Bazel creates a subdirectory below <code>includes</code> (relative to WORKSPACE) for each such rule, and makes sure that all -dependent rules have a corresponding <code>-I</code> directive to add this +dependent rules have a corresponding <code>-isystem</code> directive to add this directory into the compiler's header file search path for all compilations. Note that if a rule has multiple <code>cc_inc_library</code> rules from the same package in its dependencies, the first such rule will take precedence. |