diff options
author | 2017-03-15 16:53:10 +0000 | |
---|---|---|
committer | 2017-03-16 08:35:49 +0000 | |
commit | 9e39ea56ecb30453ffd0e88d0977efd4ef03a4a3 (patch) | |
tree | 8d0defa5761d661d73d2ef162c27f665ca6a7d37 /src/main/cpp/util | |
parent | e4d2b1d5bd6a1ec0ccc060d1355fe1196a7d389c (diff) |
Bazel client, Windows: support "d:/" output root
Support drive roots as --output_user_root values,
so "d:\" and "d:/" will now work. However "d:"
doesn't work yet because that's shorthand for the
current working directory on "D:".
See https://github.com/bazelbuild/bazel/issues/2683
--
PiperOrigin-RevId: 150203657
MOS_MIGRATED_REVID=150203657
Diffstat (limited to 'src/main/cpp/util')
-rw-r--r-- | src/main/cpp/util/file_windows.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/cpp/util/file_windows.cc b/src/main/cpp/util/file_windows.cc index 5159917eb4..66c0197d47 100644 --- a/src/main/cpp/util/file_windows.cc +++ b/src/main/cpp/util/file_windows.cc @@ -1117,7 +1117,7 @@ static bool MakeDirectoriesW(const wstring& path) { bool MakeDirectories(const string& path, unsigned int mode) { // TODO(laszlocsomor): respect `mode` to the extent that it's possible on // Windows; it's currently ignored. - if (path.empty() || IsDevNull(path) || IsRootDirectory(path)) { + if (path.empty() || IsDevNull(path)) { return false; } wstring wpath; |