diff options
author | 2016-11-22 10:50:07 +0000 | |
---|---|---|
committer | 2016-11-22 14:15:02 +0000 | |
commit | cefa9a2059237f76610273500b3be308490e1e68 (patch) | |
tree | ffb6e855db5cede6863890ddf06de3d35716dfef /src/tools/singlejar | |
parent | 124d55defc1df669c337b3df3904649731703e20 (diff) |
Bazel client: reduce dependency on POSIX API
We can now compile blaze_util_windows.cc with
MSVC, yay! (when building //src:bazel
--cpu=x64_windows_msvc -k).
There are a lot of #ifdef's and TODOs so this
is a modest victory for now.
In this change:
- change blaze::MakeDirectories to return bool
instead of int, since that's how it was used
anyway, and to expect the permission mask as
unsigned int instead of mode_t, since the
former is good enough and compatible with
mode_t on POSIX while mode_t is not defined on
Windows
- move blaze::MakeDirectories into
blaze_util_<platform>
- implement envvar-handling in
blaze_util_<platform> and use it everywhere
See https://github.com/bazelbuild/bazel/issues/2107
--
MOS_MIGRATED_REVID=139887503
Diffstat (limited to 'src/tools/singlejar')
-rw-r--r-- | src/tools/singlejar/test_util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/singlejar/test_util.cc b/src/tools/singlejar/test_util.cc index f5cbca96e3..d0263889b7 100644 --- a/src/tools/singlejar/test_util.cc +++ b/src/tools/singlejar/test_util.cc @@ -21,6 +21,7 @@ #include <string> #include "src/main/cpp/blaze_util.h" +#include "src/main/cpp/blaze_util_platform.h" #include "src/main/cpp/util/file.h" #include "src/main/cpp/util/strings.h" |