aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze.cc
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-02-14 17:57:07 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2017-02-15 10:03:02 +0000
commit226724a897fafad14988ce61ae97ef5cf86a03f3 (patch)
tree7ab596487319ecb46014523c597d4c3a6aff3391 /src/main/cpp/blaze.cc
parentdb5f2e413f8293b001a2de20e7c7d6d8b6970835 (diff)
Adds --[no]use_action_cache startup option to disable the action cache.
Disabling the action cache is helpful in contexts where incremental builds are not required, or where actions need to be repeatedly executed for debugging. -- PiperOrigin-RevId: 147485055 MOS_MIGRATED_REVID=147485055
Diffstat (limited to 'src/main/cpp/blaze.cc')
-rw-r--r--src/main/cpp/blaze.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc
index 4240be51aa..bfb8e150b8 100644
--- a/src/main/cpp/blaze.cc
+++ b/src/main/cpp/blaze.cc
@@ -482,6 +482,11 @@ static vector<string> GetArgumentArray() {
} else {
result.push_back("--use_custom_exit_code_on_abrupt_exit=false");
}
+ if (globals->options->use_action_cache) {
+ result.push_back("--use_action_cache=true");
+ } else {
+ result.push_back("--use_action_cache=false");
+ }
// This is only for Blaze reporting purposes; the real interpretation of the
// jvm flags occurs when we set up the java command line.