Pass use_default_shell_env = True for protoc (#8984)

If protoc is compiled with MinGW it will depend on libstdc++-6.dll which is found in C:\msys64\mingw64\bin and can only be found by inheriting PATH from the environment.
This commit is contained in:
Jesse Schalken 2022-03-17 07:38:37 +11:00 committed by GitHub
parent 35a065dabc
commit 1a6840accd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ def _java_rpc_library_impl(ctx):
outputs = [srcjar],
executable = toolchain.protoc,
arguments = [args],
use_default_shell_env = True,
)
deps_java_info = java_common.merge([dep[JavaInfo] for dep in ctx.attr.deps])