Add option to disable library-for-ghci in the generic haskell builder.
Closes https://github.com/NixOS/nixpkgs/pull/58743.
This commit is contained in:
parent
2e50136603
commit
a5b85222ff
@ -81,6 +81,10 @@ in
|
|||||||
# built. Will delay failures, if any, to compile time.
|
# built. Will delay failures, if any, to compile time.
|
||||||
allowInconsistentDependencies ? false
|
allowInconsistentDependencies ? false
|
||||||
, maxBuildCores ? 4 # GHC usually suffers beyond -j4. https://ghc.haskell.org/trac/ghc/ticket/9221
|
, maxBuildCores ? 4 # GHC usually suffers beyond -j4. https://ghc.haskell.org/trac/ghc/ticket/9221
|
||||||
|
, # Build a pre-linked .o file for this Haskell library. This can make it
|
||||||
|
# slightly faster to load this library into GHCi, but takes extra disk space
|
||||||
|
# and compile time.
|
||||||
|
enableLibraryForGhci ? true
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
assert editedCabalFile != null -> revision != null;
|
assert editedCabalFile != null -> revision != null;
|
||||||
@ -169,7 +173,7 @@ let
|
|||||||
(optionalString (isGhcjs || versionOlder "7" ghc.version) (enableFeature doCheck "tests"))
|
(optionalString (isGhcjs || versionOlder "7" ghc.version) (enableFeature doCheck "tests"))
|
||||||
(enableFeature doBenchmark "benchmarks")
|
(enableFeature doBenchmark "benchmarks")
|
||||||
"--enable-library-vanilla" # TODO: Should this be configurable?
|
"--enable-library-vanilla" # TODO: Should this be configurable?
|
||||||
"--enable-library-for-ghci" # TODO: Should this be configurable?
|
(enableFeature enableLibraryForGhci "library-for-ghci")
|
||||||
] ++ 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 dontStrip [
|
] ++ optionals dontStrip [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user