From 226724a897fafad14988ce61ae97ef5cf86a03f3 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 14 Feb 2017 17:57:07 +0000 Subject: 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 --- src/main/cpp/blaze.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/cpp/blaze.cc') 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 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. -- cgit v1.2.3