haskell generic-builder: Fix --with-ghc
flag for GHCJS as cross
Otherwise it passes `--with-ghc=ghc`, and we do the wrong thing.
This commit is contained in:
parent
ed6c877f14
commit
6a23c9ddbe
@ -131,7 +131,7 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
crossCabalFlags = [
|
crossCabalFlags = [
|
||||||
"--with-ghc=${ghc.targetPrefix}ghc"
|
"--with-ghc=${ghcCommand}"
|
||||||
"--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
|
"--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
|
||||||
] ++ optionals stdenv.hasCC [
|
] ++ optionals stdenv.hasCC [
|
||||||
"--with-gcc=${stdenv.cc.targetPrefix}cc"
|
"--with-gcc=${stdenv.cc.targetPrefix}cc"
|
||||||
|
Loading…
Reference in New Issue
Block a user