aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze_util_windows.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/cpp/blaze_util_windows.cc')
-rw-r--r--src/main/cpp/blaze_util_windows.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/cpp/blaze_util_windows.cc b/src/main/cpp/blaze_util_windows.cc
index e442af3730..73c5f35463 100644
--- a/src/main/cpp/blaze_util_windows.cc
+++ b/src/main/cpp/blaze_util_windows.cc
@@ -799,9 +799,10 @@ string ListSeparator() { return ";"; }
string ConvertPath(const string& path) {
#ifdef COMPILER_MSVC
- // TODO(bazel-team): implement this.
- pdie(255, "blaze::ConvertPath is not implemented on Windows");
- return "";
+ // This isn't needed when the binary isn't linked against msys-2.0.dll (when
+ // we build with MSVC): MSYS converts all Unix paths to Windows paths for such
+ // binaries.
+ return path;
#else // not COMPILER_MSVC
// If the path looks like %USERPROFILE%/foo/bar, don't convert.
if (path.empty() || path[0] == '%') {