aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2015-03-26 14:40:55 +0000
committerGravatar Han-Wen Nienhuys <hanwen@google.com>2015-03-26 15:14:55 +0000
commit427dd250c4bedc7e4bc41570bbcb873e6fcf7825 (patch)
treefbb3f008c2d2967a23bafec60c9ef54e290d49cb /src/main/cpp
parent6a1673bf85fbbdbcf804ecbd7aa94b3d115b521f (diff)
Use bazel in output user root
Fixes https://github.com/google/bazel/issues/26. -- MOS_MIGRATED_REVID=89599829
Diffstat (limited to 'src/main/cpp')
-rw-r--r--src/main/cpp/blaze_startup_options_common.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/cpp/blaze_startup_options_common.cc b/src/main/cpp/blaze_startup_options_common.cc
index 8561af1d9c..7adf841016 100644
--- a/src/main/cpp/blaze_startup_options_common.cc
+++ b/src/main/cpp/blaze_startup_options_common.cc
@@ -33,7 +33,10 @@ void BlazeStartupOptions::Init() {
output_root = GetOutputRoot();
}
- output_user_root = output_root + "/_blaze_" + GetUserName();
+ string product = GetProductName();
+ blaze_util::ToLower(&product);
+ output_user_root = blaze_util::JoinPath(
+ output_root, "_" + product + "_" + GetUserName());
block_for_lock = true;
host_jvm_debug = false;
host_javabase = "";