Skip to content

Commit

Permalink
add a key to ctx.action dict to prevent protoc losing the default env
Browse files Browse the repository at this point in the history
  • Loading branch information
yliu120 committed Dec 16, 2016
1 parent a95e38c commit ef61a9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _proto_gen_impl(ctx):
arguments=args + import_flags + [s.path for s in srcs],
executable=ctx.executable.protoc,
mnemonic="ProtoCompile",
use_default_shell_env=True,
)

return struct(
Expand Down Expand Up @@ -141,7 +142,7 @@ Args:
compiler.
plugin_language: the language of the generated sources
plugin_options: a list of options to be passed to the plugin
gen_cc: generates C++ sources in addition to the ones from the plugin.
gen_cc: generates C++ sources in addition to the ones from the plugin.
gen_py: generates Python sources in addition to the ones from the plugin.
outs: a list of labels of the expected outputs from the protocol compiler.
"""
Expand Down

0 comments on commit ef61a9d

Please sign in to comment.