Merge pull request #24663 from NixOS/ghcjs-no-native-hsc2hs
haskell generic builder: Use ghcjs's hsc2hs.
This commit is contained in:
commit
e105ba6de3
@ -125,7 +125,6 @@ let
|
|||||||
] ++ optionals (enableDeadCodeElimination && (stdenv.lib.versionOlder "8.0.1" ghc.version)) [
|
] ++ optionals (enableDeadCodeElimination && (stdenv.lib.versionOlder "8.0.1" ghc.version)) [
|
||||||
"--ghc-option=-split-sections"
|
"--ghc-option=-split-sections"
|
||||||
] ++ optionals isGhcjs [
|
] ++ optionals isGhcjs [
|
||||||
"--with-hsc2hs=${nativeGhc}/bin/hsc2hs"
|
|
||||||
"--ghcjs"
|
"--ghcjs"
|
||||||
] ++ optionals isCross ([
|
] ++ optionals isCross ([
|
||||||
"--configure-option=--host=${ghc.cross.config}"
|
"--configure-option=--host=${ghc.cross.config}"
|
||||||
@ -150,6 +149,8 @@ let
|
|||||||
buildTools ++ libraryToolDepends ++ executableToolDepends ++
|
buildTools ++ libraryToolDepends ++ executableToolDepends ++
|
||||||
optionals (allPkgconfigDepends != []) ([pkgconfig] ++ allPkgconfigDepends) ++
|
optionals (allPkgconfigDepends != []) ([pkgconfig] ++ allPkgconfigDepends) ++
|
||||||
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
||||||
|
# ghcjs's hsc2hs calls out to the native hsc2hs
|
||||||
|
optional isGhcjs nativeGhc ++
|
||||||
optionals withBenchmarkDepends (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
optionals withBenchmarkDepends (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
||||||
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user