Fix environment for protobuf compilation

Patch using upstream https://github.com/grpc/grpc/pull/23664
This commit is contained in:
Alexander Grund 2020-07-29 16:57:39 +02:00
parent a1e78629fa
commit e4fe5dc57b
No known key found for this signature in database
GPG Key ID: E92C451FC21EF13F
2 changed files with 11 additions and 0 deletions

View File

@ -688,6 +688,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
sha256 = "b956598d8cbe168b5ee717b5dafa56563eb5201a947856a6688bbeac9cac4e1f",
strip_prefix = "grpc-b54a5b338637f92bfcf4b0bc05e0f57a5fd8fadd",
system_build_file = clean_dep("//third_party/systemlibs:grpc.BUILD"),
patch_file = clean_dep("//third_party/grpc:generate_cc_env_fix.patch"),
system_link_files = {
"//third_party/systemlibs:BUILD": "bazel/BUILD",
"//third_party/systemlibs:grpc.BUILD": "src/compiler/BUILD",

View File

@ -0,0 +1,10 @@
--- a/bazel/generate_cc.bzl
+++ b/bazel/generate_cc.bzl
@@ -141,6 +141,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))