From 1668607c13ca80d99b489676212966e7fdbe8dd4 Mon Sep 17 00:00:00 2001 From: Anton-Latukha Date: Wed, 3 Jun 2020 20:38:58 +0300 Subject: [PATCH] default.nix: expose functionality: enableDWARFDebugging; add doc M default.nix --- default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/default.nix b/default.nix index bae7b07..7ea931a 100644 --- a/default.nix +++ b/default.nix @@ -26,6 +26,8 @@ # Enables GHC optimizations for production use, without optimizations compilation is way faster , doOptimize ? false , doStrict ? false +# Include DWARF debugging information & abilities +, enableDWARFDebugging ? true # Strip results from all debugging symbols , doStrip ? false , enableSharedLibraries ? true @@ -148,6 +150,10 @@ let switch = disableOptimization; function = pkgs.haskell.lib.disableOptimization; } + { + switch = enableDWARFDebugging; + function = pkgs.haskell.lib.enableDWARFDebugging; + } { switch = linkWithGold; function = pkgs.haskell.lib.linkWithGold;