aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-12-16 21:10:39 +0000
committerGravatar John Cater <jcater@google.com>2016-12-16 22:50:26 +0000
commit5fd91e2f6b4da737f3b7fa2915aa3017558e2e9f (patch)
treea8dc5f361c85daf01a14ab9452ce83bad1a0b582 /src
parent8c83db0676104eb3c04fe7e7ced21113853ba069 (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.java2
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.