Skip to content

Commit

Permalink
Remove Cpp toolchain from Python rules
Browse files Browse the repository at this point in the history
The dependency on the cpp toolchain was added in unknown commit, but is unused.

RELNOTES: None
PiperOrigin-RevId: 254213596
  • Loading branch information
brandjon authored and Copybara-Service committed Jun 20, 2019
1 parent b06400c commit c73aa26
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Expand Up @@ -23,7 +23,6 @@
import com.google.devtools.build.lib.analysis.config.HostTransition;
import com.google.devtools.build.lib.bazel.rules.python.BazelPyRuleClasses.PyBinaryBaseRule;
import com.google.devtools.build.lib.packages.RuleClass;
import com.google.devtools.build.lib.rules.cpp.CppRuleClasses;
import com.google.devtools.build.lib.rules.python.PyRuleClasses;
import com.google.devtools.build.lib.rules.python.PythonConfiguration;

Expand All @@ -47,7 +46,6 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
.cfg(HostTransition.createFactory())
.exec()
.value(env.getToolsLabel("//tools/zip:zipper")))
.addRequiredToolchains(CppRuleClasses.ccToolchainTypeAttribute(env))
.add(
attr("$launcher", LABEL)
.cfg(HostTransition.createFactory())
Expand Down
Expand Up @@ -27,7 +27,6 @@
import com.google.devtools.build.lib.packages.RuleClass;
import com.google.devtools.build.lib.packages.RuleClass.Builder.RuleClassType;
import com.google.devtools.build.lib.packages.TriState;
import com.google.devtools.build.lib.rules.cpp.CppRuleClasses;
import com.google.devtools.build.lib.rules.python.PyRuleClasses;
import com.google.devtools.build.lib.rules.python.PythonConfiguration;

Expand All @@ -54,7 +53,6 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env)
that the stamp argument is set to 0 by default for tests.
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
.override(attr("stamp", TRISTATE).value(TriState.NO))
.addRequiredToolchains(CppRuleClasses.ccToolchainTypeAttribute(env))
.add(
attr("$launcher", LABEL)
.cfg(HostTransition.createFactory())
Expand Down

0 comments on commit c73aa26

Please sign in to comment.