Skip to content

Commit

Permalink
Fixes for musl and more materialized files
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Nov 28, 2022
1 parent dba21e0 commit be5ef2c
Show file tree
Hide file tree
Showing 63 changed files with 13,429 additions and 59 deletions.
6 changes: 3 additions & 3 deletions compiler/ghc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ let
} --docs=no-sphinx -j -V";

rootDir =
if targetPrefix == "x86_64-w64-mingw32-" && useHadrian
if (haskell-nix.haskellLib.isCrossTarget || targetPlatform.isMusl) && useHadrian
then ""
else "lib/${targetPrefix}ghc-${ghc-version}/";
libDir =
if targetPrefix == "x86_64-w64-mingw32-" && useHadrian
if (haskell-nix.haskellLib.isCrossTarget || targetPlatform.isMusl) && useHadrian
then "lib"
else "lib/${targetPrefix}ghc-${ghc-version}" + lib.optionalString (useHadrian) "/lib";

Expand Down Expand Up @@ -589,7 +589,7 @@ stdenv.mkDerivation (rec {
${hadrian}/bin/hadrian ${hadrianArgs}
'';
installPhase =
if haskell-nix.haskellLib.isCrossTarget
if haskell-nix.haskellLib.isCrossTarget || targetPlatform.isMusl
then ''
mkdir $out
cp -r _build/stage1/bin $out
Expand Down
2,148 changes: 2,148 additions & 0 deletions materialized/dummy-ghc/ghc-9.4.2-x86_64-linux/ghc-pkg/dump-global

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions materialized/dummy-ghc/ghc-9.4.2-x86_64-linux/ghc/info

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

268 changes: 268 additions & 0 deletions materialized/dummy-ghc/ghc-9.4.2-x86_64-linux/ghc/supported-languages

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions materialized/dummy-ghc/ghc-9.4.2-x86_64-linux/ghc/version

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit be5ef2c

Please sign in to comment.