Skip to content

Commit

Permalink
Avoid genprimops build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Mar 17, 2023
1 parent 122e3bf commit 5bda52d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions compiler/ghc/default.nix
Expand Up @@ -250,11 +250,11 @@ let
# For build flavours and flavour transformers
# see https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/doc/flavours.md
hadrianArgs = "--flavour=${
"default"
(if targetPlatform.isGhcjs then "quick" else "default")
+ lib.optionalString (!enableShared) "+no_dynamic_ghc"
+ lib.optionalString useLLVM "+llvm"
+ lib.optionalString targetPlatform.isGhcjs "+native_bignum+no_profiled_libs"
} --docs=no-sphinx -j --verbose";
} --docs=${if targetPlatform.isGhcjs then "none" else "no-sphinx"} -j --verbose";

# When installation is done by copying the stage1 output the directory layout
# is different.
Expand Down Expand Up @@ -639,7 +639,7 @@ stdenv.mkDerivation (rec {
'';
buildPhase = ''
${hadrian}/bin/hadrian ${hadrianArgs}
'' + lib.optionalString installStage1 ''
'' + lib.optionalString (installStage1 && !stdenv.targetPlatform.isGhcjs) ''
${hadrian}/bin/hadrian ${hadrianArgs} stage1:lib:libiserv
'' + lib.optionalString targetPlatform.isMusl ''
${hadrian}/bin/hadrian ${hadrianArgs} stage1:lib:terminfo
Expand Down
2 changes: 1 addition & 1 deletion overlays/bootstrap.nix
Expand Up @@ -185,7 +185,7 @@ in {
++ final.lib.optionals (final.stdenv.targetPlatform.isWindows) (fromUntil "9.4.1" "9.5" ./patches/ghc/ghc-9.4-hadrian-win-cross.patch)
++ fromUntil "9.6.1" "9.8" ./patches/ghc/MR10116.patch
++ fromUntil "9.4.1" "9.6" ./patches/ghc/hadrian-build-deriveConstants-genprimopcode-ghc94.patch
++ fromUntil "9.6.1" "9.8" ./patches/ghc/hadrian-build-deriveConstants-genprimopcode.patch
++ final.lib.optionals (!final.stdenv.targetPlatform.isGhcjs) (fromUntil "9.6.1" "9.8" ./patches/ghc/hadrian-build-deriveConstants-genprimopcode.patch)
++ final.lib.optionals (final.stdenv.targetPlatform.isGhcjs) (fromUntil "9.6.1" "9.6.2" ./patches/ghc/ghc-9.6-Merge-libiserv-with-ghci.patch)
++ final.lib.optionals (final.stdenv.targetPlatform.isGhcjs) (fromUntil "9.6.1" "9.6.2" ./patches/ghc/ghc-9.6-Assorted-changes-to-avoid-head-tail.patch)
++ final.lib.optionals (final.stdenv.targetPlatform.isGhcjs) (fromUntil "9.6.1" "9.6.2" ./patches/ghc/ghc-9.6-JS-implement-TH-support.patch)
Expand Down

0 comments on commit 5bda52d

Please sign in to comment.