We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16e164d commit dc0d1d4Copy full SHA for dc0d1d4
builder/comp-builder.nix
@@ -223,6 +223,14 @@ let
223
"--ghc-option=-fPIC" "--gcc-option=-fPIC"
224
]
225
++ 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"
234
);
235
236
executableToolDepends =
0 commit comments