mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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
1 changed files with 3 additions and 0 deletions
|
@ -259,6 +259,9 @@ rec {
|
|||
*/
|
||||
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
|
||||
of them occur. */
|
||||
failOnAllWarnings = drv: appendConfigureFlag drv "--ghc-option=-Wall --ghc-option=-Werror";
|
||||
|
|
Loading…
Reference in a new issue