From ef61a9d313d88b2f9d253e42ba0d8ae82940eb3d Mon Sep 17 00:00:00 2001 From: Yunlong Liu Date: Fri, 16 Dec 2016 00:46:21 -0500 Subject: add a key to ctx.action dict to prevent protoc losing the default env --- protobuf.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. """ -- cgit v1.2.3