aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2016-01-15 18:20:27 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-01-15 22:29:49 +0000
commitda1e38736daa2f4187525421308054d4a489ca1a (patch)
tree7ab806b61a15634ff2a61d875d8714ac08d0ea54 /src/main/java
parent725521761e8231d97f172f064b044e17bdd37374 (diff)
Fix documentation on cc_library includes attribute
Fixes #637 -- MOS_MIGRATED_REVID=112261246
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
index d87fba70a0..97c9aa8d63 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java
@@ -372,12 +372,17 @@ public class BazelCppRuleClasses {
/*<!-- #BLAZE_RULE($cc_decl_rule).ATTRIBUTE(includes) -->
List of include dirs to be added to the compile line.
${SYNOPSIS}
- Subject to <a href="make-variables.html">"Make variable"</a> substitution.
- Each string is prepended with <code>-iquote</code> and added to <code>COPTS</code>. Unlike
- <a href="#cc_binary.copts">COPTS</a>, these flags are added for this rule
- and every rule that depends on it. (Note: not the rules it depends upon!) Be
- very careful, since this may have far-reaching effects. When in doubt, add
- "-I" flags to <a href="#cc_binary.copts">COPTS</a> instead.
+ <p>Subject to <a href="make-variables.html">"Make variable"</a> substitution.
+ Each string is prepended with <code>-isystem</code> and added to <code>COPTS</code>.
+ Unlike <a href="#cc_binary.copts">COPTS</a>, these flags are added for this rule
+ and every rule that depends on it. (Note: not the rules it depends upon!) Be
+ very careful, since this may have far-reaching effects. When in doubt, add
+ "-I" flags to <a href="#cc_binary.copts">COPTS</a> instead.
+ </p>
+ <p>To use <code>-iquote</code> instead of <code>-isystem</code>, specify
+ <code>--use_isystem_for_includes=false</code> (the flag is undocumented and defaults
+ to <code>true</code>).
+ </p>
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
.add(attr("includes", STRING_LIST))
.add(attr(":lipo_context_collector", LABEL)