From 54b21d4f011f47aee5aa570f292703739f77f1d1 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 20 Mar 2015 20:42:50 +0000 Subject: Use a /var/tmp path for Bazel output tree on OSX The current value: 1) Isn't created by anything, and 2) Generates too long a path for the name of a Unix domain socket -- MOS_MIGRATED_REVID=89152182 --- src/main/cpp/blaze_util_darwin.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main') diff --git a/src/main/cpp/blaze_util_darwin.cc b/src/main/cpp/blaze_util_darwin.cc index 566b8a8884..c982101a59 100644 --- a/src/main/cpp/blaze_util_darwin.cc +++ b/src/main/cpp/blaze_util_darwin.cc @@ -30,11 +30,7 @@ namespace blaze { using std::string; string GetOutputRoot() { - const char *home = getenv("HOME"); - if (home == NULL) { - return "/var/tmp"; - } - return blaze_util::JoinPath(home, "Library/Caches/Bazel"); + return "/var/tmp"; } void WarnFilesystemType(const string& output_base) { -- cgit v1.2.3