8000 Clarify docs on which flags can be set in the `platform` rule's `flag… · coderabbit-test/bazel@0a7cab1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a7cab1

Browse files
katrecopybara-github
authored andcommitted
Clarify docs on which flags can be set in the platform rule's flags attribute.
PiperOrigin-RevId: 747440090 Change-Id: I1264d01fc985b262cb2c2d54aa8fc1b8e63fe80b
1 parent 0dd0da9 commit 0a7cab1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
119119

120120
/* <!-- #BLAZE_RULE(platform).ATTRIBUTE(flags) -->
121121
A list of flags that will be enabled when this platform is used as the target platform in
122-
a configuration. Only flags that can be set in transitions are allowed to be used.
122+
a configuration. Only flags that are part of the configuration can be set, such as those
123+
that can be used in transitions, or the <code>--define</code> flag.
123124
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
124125
.add(
125126
attr(FLAGS_ATTR, Types.STRING_LIST)

0 commit comments

Comments
 (0)
0