summary refs log tree commit diff
path: root/pkgs/development/compilers/openjdk/16.nix
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2021-10-24 12:50:56 +0100
committerSergei Trofimovich <slyich@gmail.com>2021-10-24 14:04:46 +0100
commitb42767202a04410f959957bc18f4d2313dcc1ee1 (patch)
treeff54f887fa68f7f412fe5205490bf5129b91724d /pkgs/development/compilers/openjdk/16.nix
parent93de7f2421d69071780b3b15cedcf0678c48e1bb (diff)
downloadnixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar.gz
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar.bz2
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar.lz
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar.xz
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.tar.zst
nixpkgs-b42767202a04410f959957bc18f4d2313dcc1ee1.zip
openjdk: expliictly mark as 'enableParallelBuilding = false;'
Note: this change does not make build sequential. Build system still
uses it's way to parallelize the build.

The only effect of this change is not to pass unsupported -j option
to Makefile when nixpkgs default will be switched to

    enableParallelBuilding = true;
Diffstat (limited to 'pkgs/development/compilers/openjdk/16.nix')
-rw-r--r--pkgs/development/compilers/openjdk/16.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/compilers/openjdk/16.nix b/pkgs/development/compilers/openjdk/16.nix
index df8a3a68f48..e6fd12a632b 100644
--- a/pkgs/development/compilers/openjdk/16.nix
+++ b/pkgs/development/compilers/openjdk/16.nix
@@ -84,6 +84,12 @@ let
       "-lgtk-3" "-lgio-2.0" "-lgnomevfs-2" "-lgconf-2"
     ]);
 
+    # -j flag is explicitly rejected by the build system:
+    #     Error: 'make -jN' is not supported, use 'make JOBS=N'
+    # Note: it does not make build sequential. Build system
+    # still runs in parallel.
+    enableParallelBuilding = false;
+
     buildFlags = [ "all" ];
 
     installPhase = ''