diff options
Diffstat (limited to 'src/main/cpp/blaze_util_windows.cc')
-rw-r--r-- | src/main/cpp/blaze_util_windows.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/cpp/blaze_util_windows.cc b/src/main/cpp/blaze_util_windows.cc index efd0d72c59..565e8876c2 100644 --- a/src/main/cpp/blaze_util_windows.cc +++ b/src/main/cpp/blaze_util_windows.cc @@ -250,11 +250,10 @@ bool IsSharedLibrary(const string &filename) { return blaze_util::ends_with(filename, ".dll"); } -string GetDefaultHostJavabase() { +string GetSystemJavabase() { string javahome(GetEnv("JAVA_HOME")); if (javahome.empty()) { - BAZEL_DIE(blaze_exit_code::LOCAL_ENVIRONMENTAL_ERROR) - << "Error: JAVA_HOME not set."; + return ""; } return javahome; } |