diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java b/src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java index 10344bb6ea..aef9d42377 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/platform/PlatformRule.java @@ -52,7 +52,7 @@ public class PlatformRule implements RuleDefinition { .add( attr(CONSTRAINT_VALUES_ATTR, BuildType.LABEL_LIST) .allowedFileTypes(FileTypeSet.NO_FILE) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER))) + .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id()))) /* <!-- #BLAZE_RULE(platform).ATTRIBUTE(remote_execution_properties) --> A key/value dict of values that will be sent to a remote execution platform. @@ -76,14 +76,14 @@ public class PlatformRule implements RuleDefinition { .add( attr(CPU_CONSTRAINTS_ATTR, BuildType.LABEL_LIST) .allowedFileTypes(FileTypeSet.NO_FILE) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id())) .undocumented("Should only be used by internal packages.")) // Undocumented. Indicates to the rule which constraint_values to use for automatic CPU // mapping. .add( attr(OS_CONSTRAINTS_ATTR, BuildType.LABEL_LIST) .allowedFileTypes(FileTypeSet.NO_FILE) - .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_IDENTIFIER)) + .mandatoryProviders(ImmutableList.of(ConstraintValueInfo.SKYLARK_CONSTRUCTOR.id())) .undocumented("Should only be used by internal packages.")) .removeAttribute("deps") .removeAttribute("data") |