aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco A. Harrendorf <marco.harrendorf@cern.ch>2017-04-03 17:01:36 +0200
committerFeng Xiao <xfxyjwf@gmail.com>2017-10-24 15:57:37 -0700
commitc9899b17a8443890de592a47124b2a3a2e9fa6d2 (patch)
tree623c34bae552a8794e88cadf85606c49fa8a6c8f
parent45ff30697af6590a927c73584351f2670768f719 (diff)
downloadprotobuf-c9899b17a8443890de592a47124b2a3a2e9fa6d2.tar.gz
protobuf-c9899b17a8443890de592a47124b2a3a2e9fa6d2.tar.bz2
protobuf-c9899b17a8443890de592a47124b2a3a2e9fa6d2.zip
Adding default shell env
I am adding default shell environment, so that protobuf compilation makes use of set LD_LIBRARY_PATH and so on. In this way, also non-default gcc installations (e.g. not in /usr/lib) can be used to compile protobuf. This would fix the following issue: https://github.com/bazelbuild/bazel/issues/2515
-rw-r--r--protobuf.bzl1
1 files changed, 1 insertions, 0 deletions
diff --git a/protobuf.bzl b/protobuf.bzl
index 73c396d5..9cb17f01 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -108,6 +108,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(