Convey the value of the --host_javabase startup option to the server. -- PiperOrigin-RevId: 149282686 MOS_MIGRATED_REVID=149282686
diff --git a/src/main/cpp/blaze.cc b/src/main/cpp/blaze.cc index eec8f47..5fdf5ad 100644 --- a/src/main/cpp/blaze.cc +++ b/src/main/cpp/blaze.cc
@@ -481,6 +481,11 @@ result.push_back("--use_custom_exit_code_on_abrupt_exit=false"); } + if (!globals->options->GetExplicitHostJavabase().empty()) { + result.push_back("--host_javabase=" + + globals->options->GetExplicitHostJavabase()); + } + // This is only for Blaze reporting purposes; the real interpretation of the // jvm flags occurs when we set up the java command line. if (globals->options->host_jvm_debug) {