aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl
diff options
context:
space:
mode:
authorGravatar Madiyar Aitbayev <madiyar@google.com>2018-08-03 20:26:48 +0100
committerGravatar Madiyar Aitbayev <madiyar@google.com>2018-08-03 20:26:48 +0100
commit750ac07158c66839e675bacd30beb5b5ad0ea0f6 (patch)
tree3d7476ce4481b43eb530fd50503cb8eb1dafb8a2 /third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl
parent3ce29e3b3341d8820442407fc260d3f3223b9ab8 (diff)
parentdd45704d092dac87575b8ce39013f91f4f213dc0 (diff)
Diffstat (limited to 'third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl')
-rw-r--r--third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl b/third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl
new file mode 100644
index 0000000000..8f8fb3e423
--- /dev/null
+++ b/third_party/gpus/crosstool/windows/msvc_wrapper_for_nvcc.bat.tpl
@@ -0,0 +1,20 @@
+:: Copyright 2015 The TensorFlow Authors. All Rights Reserved.
+::
+:: Licensed under the Apache License, Version 2.0 (the "License");
+:: you may not use this file except in compliance with the License.
+:: You may obtain a copy of the License at
+::
+:: http://www.apache.org/licenses/LICENSE-2.0
+::
+:: Unless required by applicable law or agreed to in writing, software
+:: distributed under the License is distributed on an "AS IS" BASIS,
+:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+:: See the License for the specific language governing permissions and
+:: limitations under the License.
+:: =============================================================================
+
+:: Invoke msvc_wrapper_for_nvcc.py, which is located in the same directory.
+@echo OFF
+set arg0=%~0
+for %%F in ("%arg0%") do set DRIVER_BIN=%%~dpF
+"%{python_binary}" -B "%DRIVER_BIN%\msvc_wrapper_for_nvcc.py" %*