Skip to content

Commit

Permalink
Update Python rules to use the toolchain transition.
Browse files Browse the repository at this point in the history
This is phase 2 of of the switch to toolchain transitions. See bazelbuild#11584 for details.
  • Loading branch information
katre committed Sep 2, 2020
1 parent 67dba98 commit 480da24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ responsible for creating (possibly empty) __init__.py files and adding them to t
attr("$py_toolchain_type", NODEP_LABEL)
.value(env.getToolsLabel("//tools/python:toolchain_type")))
.addRequiredToolchains(env.getToolsLabel("//tools/python:toolchain_type"))
.useToolchainTransition(true)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void userDefinedConsumerUsingToolchainResolution() throws Exception {
"myrule = rule(",
" implementation = _myrule_impl,",
" toolchains = ['" + TOOLCHAIN_TYPE + "'],",
" incompatible_use_toolchain_transition = True,",
")");
// A toolchain implementation and an instance of the rule that will use it.
scratch.file(
Expand Down

0 comments on commit 480da24

Please sign in to comment.