Add disable core optimizations (#51464)
haskell.lib.disableOptimization: new function Adds a utility function for disabling GHC core optimizations. Significantly reduces build times.
This commit is contained in:
parent
4cf1d88d12
commit
e42d10957d
@ -259,6 +259,9 @@ rec {
|
|||||||
*/
|
*/
|
||||||
buildStrictly = pkg: buildFromSdist (failOnAllWarnings pkg);
|
buildStrictly = pkg: buildFromSdist (failOnAllWarnings pkg);
|
||||||
|
|
||||||
|
/* Disable core optimizations, significantly speeds up build time */
|
||||||
|
disableOptimization = pkg: appendConfigureFlag pkg "--disable-optimization";
|
||||||
|
|
||||||
/* Turn on most of the compiler warnings and fail the build if any
|
/* Turn on most of the compiler warnings and fail the build if any
|
||||||
of them occur. */
|
of them occur. */
|
||||||
failOnAllWarnings = drv: appendConfigureFlag drv "--ghc-option=-Wall --ghc-option=-Werror";
|
failOnAllWarnings = drv: appendConfigureFlag drv "--ghc-option=-Wall --ghc-option=-Werror";
|
||||||
|
Loading…
Reference in New Issue
Block a user