Skip to content

Commit dc0d1d4

Browse files
committed
Revert "Try without -j1 on windows now uniques patch is updated"
This reverts commit e30ce69.
1 parent 16e164d commit dc0d1d4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

builder/comp-builder.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ let
223223
"--ghc-option=-fPIC" "--gcc-option=-fPIC"
224224
]
225225
++ map (o: ''--ghc${lib.optionalString (stdenv.hostPlatform.isGhcjs) "js"}-options="${o}"'') ghcOptions
226+
++ lib.optional (
227+
# GHC 9.2 cross compiler built with older versions of GHC seem to have problems
228+
# with unique conters. Perhaps because the name changed for the counters.
229+
# TODO This work around to use `-j1` should be removed once we are able to build 9.2 with 9.2.
230+
haskellLib.isCrossHost
231+
&& builtins.compareVersions defaults.ghc.version "9.2.1" >= 0
232+
&& builtins.compareVersions defaults.ghc.version "9.3" < 0)
233+
"--ghc-options=-j1"
226234
);
227235

228236
executableToolDepends =

0 commit comments

Comments
 (0)