mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
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
1 changed files with 2 additions and 6 deletions
|
@ -2828,14 +2828,10 @@ let
|
||||||
else
|
else
|
||||||
let
|
let
|
||||||
openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {};
|
openjdkBootstrap = callPackage ../development/compilers/openjdk/bootstrap.nix {};
|
||||||
openjdkStage1 = callPackage ../development/compilers/openjdk {
|
in callPackage ../development/compilers/openjdk {
|
||||||
jdk = openjdkBootstrap;
|
jdk = openjdkBootstrap;
|
||||||
ant = pkgs.ant.override { jdk = openjdkBootstrap; };
|
ant = pkgs.ant.override { jdk = openjdkBootstrap; };
|
||||||
};
|
};
|
||||||
in callPackage ../development/compilers/openjdk {
|
|
||||||
jdk = openjdkStage1;
|
|
||||||
ant = pkgs.ant.override { jdk = openjdkStage1; };
|
|
||||||
};
|
|
||||||
|
|
||||||
openjre = pkgs.openjdk.override {
|
openjre = pkgs.openjdk.override {
|
||||||
jreOnly = true;
|
jreOnly = true;
|
||||||
|
|
Loading…
Reference in a new issue