aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlong Liu <davislong198833@gmail.com>2016-12-16 00:46:21 -0500
committerYunlong Liu <davislong198833@gmail.com>2016-12-16 00:46:21 -0500
commitef61a9d313d88b2f9d253e42ba0d8ae82940eb3d (patch)
treea007cb2d653be0298ce31dad4b20d83fe4bc2f08
parenta95e38ce8dec20d327692f4f5c2b0d37d6776696 (diff)
downloadprotobuf-ef61a9d313d88b2f9d253e42ba0d8ae82940eb3d.tar.gz
protobuf-ef61a9d313d88b2f9d253e42ba0d8ae82940eb3d.tar.bz2
protobuf-ef61a9d313d88b2f9d253e42ba0d8ae82940eb3d.zip
add a key to ctx.action dict to prevent protoc losing the default env
-rw-r--r--protobuf.bzl3
1 files changed, 2 insertions, 1 deletions
diff --git a/protobuf.bzl b/protobuf.bzl
index 3998e77b..14e6789e 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -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(
@@ -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.
"""