diff options
author | 2017-07-25 09:50:13 +0200 | |
---|---|---|
committer | 2017-07-25 13:17:50 +0200 | |
commit | 0bf2e8e7f53962dfebaacc886f983138fef5ab4e (patch) | |
tree | 17715d8712d89aa451df779f6598023c3860136c | |
parent | 32ff770b91f0ff2361a179098aa5c502cec8430c (diff) |
windows_cc_configure.bzl: Set maxsplit to 1 when parsing environment variables
fix https://github.com/bazelbuild/bazel/issues/3442
RELNOTES:
PiperOrigin-RevId: 163039890
-rw-r--r-- | tools/cpp/windows_cc_configure.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cpp/windows_cc_configure.bzl b/tools/cpp/windows_cc_configure.bzl index 7e9ad01c49..4ad43fd1df 100644 --- a/tools/cpp/windows_cc_configure.bzl +++ b/tools/cpp/windows_cc_configure.bzl @@ -199,7 +199,7 @@ def _find_env_vars(repository_ctx, vc_path): envs = execute(repository_ctx, ["./get_env.bat"], environment=env).split(",") env_map = {} for env in envs: - key, value = env.split("=") + key, value = env.split("=", 1) env_map[key] = escape_string(value.replace("\\", "\\\\")) return env_map |