Fix environment for protobuf compilation (#23664)

Add use_default_shell_env = True to protoc invocation to mirror
what the protobuf cc_proto_library & co are doing
Fixes a failure in invocing protoc when it is build in a non-default
environment (e.g. with a custom LD_LIBRARY_PATH)
reviewable/pr26134/r7
Alexander Grund 4 years ago committed by GitHub
parent 68a7e8a7d8
commit c46dd9ca9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      bazel/generate_cc.bzl

@ -154,6 +154,7 @@ def generate_cc_impl(ctx):
outputs = out_files,
executable = ctx.executable._protoc,
arguments = arguments,
use_default_shell_env = True,
)
return struct(files = depset(out_files))

Loading…
Cancel
Save