From 22081f66ca3e3c826ea0835f0c98ac6cf1845e43 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 16 Feb 2021 11:01:56 -0800 Subject: [PATCH] cuda_configure.bzl: Add missing env vars deps for msvc configuration PiperOrigin-RevId: 357758933 Change-Id: Iae562808db85b81cba96a72ba9c50e806dedc885 --- third_party/gpus/cuda_configure.bzl | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/third_party/gpus/cuda_configure.bzl b/third_party/gpus/cuda_configure.bzl index a017ab45843..8b2c4ce773c 100644 --- a/third_party/gpus/cuda_configure.bzl +++ b/third_party/gpus/cuda_configure.bzl @@ -1393,6 +1393,21 @@ def _cuda_autoconf_impl(repository_ctx): else: _create_local_cuda_repository(repository_ctx) +# For @bazel_tools//tools/cpp:windows_cc_configure.bzl +_MSVC_ENVVARS = [ + "BAZEL_VC", + "BAZEL_VC_FULL_VERSION", + "BAZEL_VS", + "BAZEL_WINSDK_FULL_VERSION", + "VS90COMNTOOLS", + "VS100COMNTOOLS", + "VS110COMNTOOLS", + "VS120COMNTOOLS", + "VS140COMNTOOLS", + "VS150COMNTOOLS", + "VS160COMNTOOLS", +] + _ENVIRONS = [ _GCC_HOST_COMPILER_PATH, _GCC_HOST_COMPILER_PREFIX, @@ -1410,7 +1425,7 @@ _ENVIRONS = [ "TMP", "TMPDIR", "TF_CUDA_PATHS", -] +] + _MSVC_ENVVARS remote_cuda_configure = repository_rule( implementation = _create_local_cuda_repository,