forked from mirrors/nixpkgs
openjdk: Build only once
Since javac doesn't do much optimisation, bootstrapping twice is unlikely to produce a faster compiler.
This commit is contained in:
parent
0c93c758bf
commit
2f31a7ccc6
|
@ -2828,13 +2828,9 @@ let
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {};
|
openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {};
|
||||||
openjdkStage1 = callPackage ../development/compilers/openjdk {
|
|
||||||
jdk = openjdkBootstrap;
|
|
||||||
ant = pkgs.ant.override { jdk = openjdkBootstrap; };
|
|
||||||
};
|
|
||||||
in callPackage ../development/compilers/openjdk {
|
in callPackage ../development/compilers/openjdk {
|
||||||
jdk = openjdkStage1;
|
jdk = openjdkBootstrap;
|
||||||
ant = pkgs.ant.override { jdk = openjdkStage1; };
|
ant = pkgs.ant.override { jdk = openjdkBootstrap; };
|
||||||
};
|
};
|
||||||
|
|
||||||
openjre = pkgs.openjdk.override {
|
openjre = pkgs.openjdk.override {
|
||||||
|
|
Loading…
Reference in a new issue