diff options
author | Yunlong Liu <davislong198833@gmail.com> | 2016-12-16 00:46:21 -0500 |
---|---|---|
committer | Yunlong Liu <davislong198833@gmail.com> | 2016-12-16 00:46:21 -0500 |
commit | ef61a9d313d88b2f9d253e42ba0d8ae82940eb3d (patch) | |
tree | a007cb2d653be0298ce31dad4b20d83fe4bc2f08 | |
parent | a95e38ce8dec20d327692f4f5c2b0d37d6776696 (diff) | |
download | protobuf-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.bzl | 3 |
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. """ |