Skip to content

Commit 6b549e5

Browse files
committed
WIP: Disable GHC dwarf support. Adds traces. Does not work yet.
It does not work yet because of multiple GHCs in the build for `hello`, and one of them still has dwarf support on and passeds the dwarf linker flags. Unclear why we have multiple GHCs in the build as direct depdendencies of the `hello` package.
1 parent 1412668 commit 6b549e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

survey/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ let
170170
else pkgsToUseForSetupExe.haskell.packages."${compiler}";
171171
in
172172
haskellPackagesToUseForSetupExe.override (old: {
173+
ghc = builtins.trace "c" old.ghc.override { enableDwarf = false; };
173174
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: {
174175

175176
Cabal =
@@ -934,6 +935,7 @@ let
934935

935936

936937
haskellPackages = previousHaskellPackages.override (old: {
938+
ghc = builtins.trace "a" old.ghc.override { enableDwarf = false; };
937939
overrides = final.lib.composeExtensions (old.overrides or (_: _: {})) (self: super:
938940
with final.haskell.lib;
939941
with final.staticHaskellHelpers;
@@ -1547,6 +1549,7 @@ let
15471549
# Overlay all Haskell executables are statically linked.
15481550
staticHaskellBinariesOverlay = final: previous: {
15491551
haskellPackages = previous.haskellPackages.override (old: {
1552+
ghc = builtins.trace "b" old.ghc.override { enableDwarf = false; };
15501553
overrides = final.lib.composeExtensions (old.overrides or (_: _: {})) (self: super:
15511554
let
15521555
# We have to use `useFixedCabal` here, and cannot just rely on the

0 commit comments

Comments
 (0)