From 4de896db9f9307c5db28e97a1fa210b5fee13143 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Thu, 13 Feb 2020 09:11:42 -0800 Subject: [PATCH] Fix bug in _basename. I accidentally used a backslash on Linux and forwardslash on Windows. PiperOrigin-RevId: 294929053 Change-Id: Ic7e77b415406e1429e970006c3b14ef5ccd586a8 --- third_party/gpus/cuda_configure.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/gpus/cuda_configure.bzl b/third_party/gpus/cuda_configure.bzl index 01e5b14ebd3..96357755ce9 100644 --- a/third_party/gpus/cuda_configure.bzl +++ b/third_party/gpus/cuda_configure.bzl @@ -855,7 +855,7 @@ def _basename(repository_ctx, path_str): is_win = is_windows(repository_ctx) for i in range(num_chars): r_i = num_chars - 1 - i - if (is_win and path_str[r_i] == "/") or path_str[r_i] == "\\": + if (is_win and path_str[r_i] == "\\") or path_str[r_i] == "/": return path_str[r_i + 1:] return path_str