diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2018-03-29 00:28:05 -0400 |
---|---|---|
committer | Will Fancher <elvishjerricco@gmail.com> | 2018-03-29 00:28:05 -0400 |
commit | 0879138cb7362498821aea8132518c121b959554 (patch) | |
tree | c63cba59ad8551d6f534a323094b4495c14cd731 /pkgs/development | |
parent | 4e645a2781bfc40ca72221781b62a20f148bc8c0 (diff) | |
download | nixlib-0879138cb7362498821aea8132518c121b959554.tar nixlib-0879138cb7362498821aea8132518c121b959554.tar.gz nixlib-0879138cb7362498821aea8132518c121b959554.tar.bz2 nixlib-0879138cb7362498821aea8132518c121b959554.tar.lz nixlib-0879138cb7362498821aea8132518c121b959554.tar.xz nixlib-0879138cb7362498821aea8132518c121b959554.tar.zst nixlib-0879138cb7362498821aea8132518c121b959554.zip |
GHC: Don't use --profiling-detail on GHC < 8.0.2
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/haskell-modules/generic-builder.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index 76c18cc486eb..52d596da701a 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -138,7 +138,7 @@ let (optionalString useCpphs "--with-cpphs=${cpphs}/bin/cpphs --ghc-options=-cpp --ghc-options=-pgmP${cpphs}/bin/cpphs --ghc-options=-optP--cpp") (enableFeature (enableDeadCodeElimination && !hostPlatform.isArm && !hostPlatform.isAarch64 && (versionAtLeast "8.0.1" ghc.version)) "split-objs") (enableFeature enableLibraryProfiling "library-profiling") - (optionalString (enableExecutableProfiling || enableLibraryProfiling) "--profiling-detail=${profilingDetail}") + (optionalString ((enableExecutableProfiling || enableLibraryProfiling) && versionOlder "8" ghc.version) "--profiling-detail=${profilingDetail}") (enableFeature enableExecutableProfiling (if versionOlder ghc.version "8" then "executable-profiling" else "profiling")) (enableFeature enableSharedLibraries "shared") (optionalString (versionAtLeast ghc.version "7.10") (enableFeature doCoverage "coverage")) |