bazel: pass jdk11_headless to --server_javabase (#74279)

We only refer to openjdk by passing `--server_javabase="${runJdk}"` to
the `bazel` executable.

By passing jdk11_headless instead of jdk11, we cut bazels runtime
closure from 1.6 GiB to 1.1 GiB.
This commit is contained in:
Florian Klink 2019-11-26 19:48:04 +01:00 committed by Wael Nasreddine
parent bf39cf8518
commit 201defc4bf

View file

@ -9517,7 +9517,7 @@ in
inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Foundation;
buildJdk = jdk8;
buildJdkName = "jdk8";
runJdk = jdk11;
runJdk = jdk11_headless;
stdenv = if stdenv.cc.isClang then llvmPackages_6.stdenv else stdenv;
};