Skip to content

Commit

Permalink
Use ExecutionRequirements.REQUIRES_DARWIN instead of hard-coding the …
Browse files Browse the repository at this point in the history
…string

--
PiperOrigin-RevId: 143933349
MOS_MIGRATED_REVID=143933349
  • Loading branch information
ulfjack authored and hlopko committed Jan 9, 2017
1 parent cf6e173 commit dc46b83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.google.devtools.build.lib.analysis.RunfilesProvider;
import com.google.devtools.build.lib.analysis.RunfilesSupport;
import com.google.devtools.build.lib.analysis.TransitiveInfoCollection;
import com.google.devtools.build.lib.analysis.actions.ExecutionRequirements;
import com.google.devtools.build.lib.analysis.actions.FileWriteAction;
import com.google.devtools.build.lib.analysis.actions.SpawnAction;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
Expand Down Expand Up @@ -374,7 +375,7 @@ public static ConfiguredTarget init(CppSemantics semantics, RuleContext ruleCont
if (Platform.isApplePlatform(cppConfiguration.getTargetCpu())
&& TargetUtils.isTestRule(ruleContext.getRule())) {
ruleBuilder.addNativeDeclaredProvider(
new ExecutionInfoProvider(ImmutableMap.of("requires-darwin", "")));
new ExecutionInfoProvider(ImmutableMap.of(ExecutionRequirements.REQUIRES_DARWIN, "")));
}

return ruleBuilder
Expand Down

0 comments on commit dc46b83

Please sign in to comment.