diff options
author | Kristina Chodorow <kchodorow@google.com> | 2015-03-20 19:11:19 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-03-23 11:55:58 +0000 |
commit | 9396335f63011546fb076e223a9c6bfe84dd0bec (patch) | |
tree | 8fdd931dd9de4db223ffe2a7abdcfcdf9733f1a2 /src/main/cpp/blaze_util_linux.cc | |
parent | 49cdba33851b25045766d0b8263f59a4a52a9a10 (diff) |
Use OS-specific caches for output root
--
MOS_MIGRATED_REVID=89144546
Diffstat (limited to 'src/main/cpp/blaze_util_linux.cc')
-rw-r--r-- | src/main/cpp/blaze_util_linux.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/cpp/blaze_util_linux.cc b/src/main/cpp/blaze_util_linux.cc index 3c1bcebaa5..c5c32daafc 100644 --- a/src/main/cpp/blaze_util_linux.cc +++ b/src/main/cpp/blaze_util_linux.cc @@ -27,6 +27,10 @@ namespace blaze { using std::string; +string GetOutputRoot() { + return blaze_util::JoinPath(getenv("HOME"), ".cache/bazel"); +} + void WarnFilesystemType(const string& output_base) { struct statfs buf = {}; if (statfs(output_base.c_str(), &buf) < 0) { |