Skip to content

Commit

Permalink
Stop using the deprecated ctx.action function.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuetschard committed Jun 21, 2019
1 parent c5ae11c commit e07acfa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/build/rules/grpc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _gen_cc_source_impl(ctx):
arguments += ["--proto_path=."]
arguments += [proto.path for proto in protos]

ctx.action(
ctx.actions.run(
inputs = protos + includes,
outputs = out_files,
tools = [ctx.executable._protoc, ctx.executable._plugin],
Expand Down
6 changes: 4 additions & 2 deletions tools/build/third_party/perfetto/ipc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def _gen_cc_impl(ctx):
arguments += ["--proto_path=."]
arguments += [proto.path for proto in protos]

ctx.action(
inputs = protos + includes + [ctx.executable._plugin],
ctx.actions.run(
inputs = protos + includes,
outputs = out_files,
tools = [ctx.executable._protoc, ctx.executable._plugin],
executable = ctx.executable._protoc,
arguments = arguments,
use_default_shell_env = True,
)

return [
Expand Down
6 changes: 4 additions & 2 deletions tools/build/third_party/perfetto/protozero.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def _gen_cc_impl(ctx):
arguments += ["--proto_path=."]
arguments += [proto.path for proto in protos]

ctx.action(
inputs = protos + includes + [ctx.executable._plugin],
ctx.actions.run(
inputs = protos + includes,
outputs = out_files,
tools = [ctx.executable._protoc, ctx.executable._plugin],
executable = ctx.executable._protoc,
arguments = arguments,
use_default_shell_env = True,
)

return [
Expand Down

0 comments on commit e07acfa

Please sign in to comment.