aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2015-09-23 13:53:59 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-09-24 14:15:32 +0000
commit9c8b370008aa080dd484edd63a15f391c291c55d (patch)
treef66837f60e00b2a21c0c6b8d3f4e4e90e2561210 /src
parentffdf67563e87f37f58d2197cc924f0e62d1f9840 (diff)
Doc: Clarify when to use output_to_genfiles.
-- MOS_MIGRATED_REVID=103741408
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleClassFunctions.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleClassFunctions.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleClassFunctions.java
index 69f8e01b6b..f2a3733b16 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleClassFunctions.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleClassFunctions.java
@@ -233,7 +233,8 @@ public class SkylarkRuleClassFunctions {
+ "there must be an action that generates <code>ctx.outputs.executable</code>."),
@Param(name = "output_to_genfiles", type = Boolean.class, defaultValue = "False",
doc = "If true, the files will be generated in the genfiles directory instead of the "
- + "bin directory. This is used for compatibility with existing rules."),
+ + "bin directory. Unless you need it for compatibility with existing rules "
+ + "(e.g. when generating header files for C++), do not set this flag."),
@Param(name = "fragments", type = SkylarkList.class, generic1 = String.class,
defaultValue = "[]",
doc = "List of names of configuration fragments that the rule requires "