diff options
author | sternenseemann <sternenseemann@systemli.org> | 2023-12-20 10:59:08 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-12-20 11:09:45 +0100 |
commit | ce5cbc446589d0d94629c56be31a52e3a63bd182 (patch) | |
tree | 3abf6eb8b3b10eb3230fe8de8282c0d68b1a32af /pkgs/development/compilers/ghc | |
parent | 8b4558e28b14572b9544d93b3fc6c3a1241c94bf (diff) |
haskell.packages.{ghc96,ghc98}: disable haddock for cross
In this situation, haddock would not be built by hadrian, as there is no
stage0:exe:haddock target by default. (We should eventually try adding
one.) If haddock is enabled and the build->host haddock missing, Cabal
tries using the build->build haddock which may fail to load the
documentation from the interface files produced by the build->host
GHC (e.g. due to a mismatch between dynamic and static linking).
Add regression tests to haskell-updates jobset.
Resolves #275304.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r-- | pkgs/development/compilers/ghc/common-hadrian.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index 8bc9a5835177..7d3c282a3b75 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -507,6 +507,10 @@ stdenv.mkDerivation ({ # Expose hadrian used for bootstrapping, for debugging purposes inherit hadrian; + + # TODO(@sternenseemann): there's no stage0:exe:haddock target by default, + # so haddock isn't available for GHC cross-compilers. Can we fix that? + hasHaddock = stdenv.hostPlatform == stdenv.targetPlatform; }; meta = { |