Skip to content

Commit

Permalink
Migrate Automatic Exec Groups by adding a toolchain parameter to the …
Browse files Browse the repository at this point in the history
…affected actions

This is a step forward for the full migration of Automatic Exec Groups (AEGs). This change will be effective once AEGs are enabled.

In this CL I've added a toolchain_type to `toolchain` attribute of ctx.actions.{run, run_shell} since the Execution platform is selected on a toolchain type level, not on a rule level like before AEGs.

PiperOrigin-RevId: 559248266
  • Loading branch information
kotlaja authored and copybara-github committed Aug 22, 2023
1 parent 52431fc commit 45e5ad7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transpiler/fhe_yosys.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ def _generate_netlist_analysis(ctx, stem, netlist):
outputs = [netlist_analysis_result],
arguments = args,
executable = ctx.executable._netlist_analyzer,
toolchain = None,
)
return [netlist_analysis_result]

Expand Down Expand Up @@ -264,6 +265,7 @@ def _generate_netlist(ctx, stem, verilog, entry):
env = {
"YOSYS_DATDIR": yosys_runfiles_dir + "/yosys/share/yosys",
},
toolchain = None,
)

return [netlist, script] + additional_files

0 comments on commit 45e5ad7

Please sign in to comment.