Unverified Commit cc6d93dd authored by Alexandre Esteves's avatar Alexandre Esteves Committed by GitHub
Browse files

haskell.compiler.ghc: relax native requirement with 'canExecute' (#508737)

parents 3b14bf26 4c83b2b6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -388,7 +388,7 @@ assert !enableNativeBignum -> gmp != null;
assert stdenv.buildPlatform == stdenv.hostPlatform || stdenv.hostPlatform == stdenv.targetPlatform;

# It is currently impossible to cross-compile GHC with Hadrian.
assert lib.assertMsg (stdenv.buildPlatform == stdenv.hostPlatform)
assert lib.assertMsg (stdenv.buildPlatform.canExecute stdenv.hostPlatform)
  "GHC >= 9.6 can't be cross-compiled. If you meant to build a GHC cross-compiler, use `buildPackages`.";

let