diff options
author | dslomov <dslomov@google.com> | 2017-07-10 17:15:27 +0200 |
---|---|---|
committer | László Csomor <laszlocsomor@google.com> | 2017-07-10 17:45:04 +0200 |
commit | 77baa4c372ae014db8e17f6d3c60bd88597853d9 (patch) | |
tree | 3ca2c63943782b506b0f19f5b7f7465909723590 /src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java | |
parent | 45bd34e747d13fc2bebdc849a11b4b952da5d8a6 (diff) |
Make native declared providers type-safe.
RELNOTES: None.
PiperOrigin-RevId: 161395570
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java b/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java index 8065d35909..3c393e2269 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/platform/ToolchainRule.java @@ -59,7 +59,7 @@ public class ToolchainRule implements RuleDefinition { <!-- #END_BLAZE_RULE.ATTRIBUTE --> */ .add( attr(EXEC_COMPATIBLE_WITH_ATTR, BuildType.LABEL_LIST) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id()) .allowedFileTypes() .nonconfigurable("part of toolchain configuration")) /* <!-- #BLAZE_RULE(toolchain).ATTRIBUTE(target_compatible_with) --> @@ -68,7 +68,7 @@ public class ToolchainRule implements RuleDefinition { <!-- #END_BLAZE_RULE.ATTRIBUTE --> */ .add( attr(TARGET_COMPATIBLE_WITH_ATTR, BuildType.LABEL_LIST) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id()) .allowedFileTypes() .nonconfigurable("part of toolchain configuration")) /* <!-- #BLAZE_RULE(toolchain).ATTRIBUTE(toolchain) --> |