nixpkgs/pkgs/development/compilers/openjdk
Artturin 849e4dc5ff openjfx: respect NIX_BUILD_CORES in nested cmake
Building `openjfx11` or `openjfx12` on a machine with many cores can consume huge amounts of RAM. With 24 cores, the memory usage exceeded `25GB` per build for me.

Using `NIX_BUILD_CORES` to reduce the number of parallel tasks doesn't help, because a script invoking `cmake` does not respect `NIX_BUILD_CORES` and passes `-j <number of cores>`.

Setting `NUMBER_OF_PROCESSORS` overrides the automatic core count detection in the script.

https://github.com/search?q=repo%3Aopenjdk%2Fjfx%20NUMBER_OF_PROCESSORS&type=code

Co-authored-by: Fabian Möller <fabianm88@gmail.com>
2023-10-15 04:56:01 +03:00
..
openjfx openjfx: respect NIX_BUILD_CORES in nested cmake 2023-10-15 04:56:01 +03:00
tests
8.nix
11.nix
12.nix
13.nix
14.nix
15.nix
16.nix
17.nix
18.nix
19.nix
20.nix
21.nix openjdk21, openjfx21: init at 21 (#258507) 2023-10-08 23:11:55 +02:00
bootstrap.nix
currency-date-range-jdk8.patch
currency-date-range-jdk10.patch
fix-glibc-2.34.patch
fix-java-home-jdk8.patch
fix-java-home-jdk10.patch
fix-java-home-jdk21.patch openjdk21, openjfx21: init at 21 (#258507) 2023-10-08 23:11:55 +02:00
fix-library-path-jdk8.patch
fix-library-path-jdk11.patch
fix-library-path-jdk17.patch
generate-cacerts.pl
ignore-LegalNoticeFilePlugin-jdk17.patch
ignore-LegalNoticeFilePlugin-jdk18.patch
increase-javadoc-heap-jdk13.patch
increase-javadoc-heap.patch
jre.nix
make-bootstrap.nix
meta.nix
read-truststore-from-env-jdk8.patch
read-truststore-from-env-jdk10.patch
swing-use-gtk-jdk8.patch
swing-use-gtk-jdk10.patch
swing-use-gtk-jdk13.patch