Comments
This commit is contained in:
parent
d55ea4953e
commit
4d64ef3eea
1 changed files with 5 additions and 1 deletions
|
|
@ -3,7 +3,11 @@ inputs:
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
mps-debug = prev.mps.overrideAttrs (old: {
|
mps-debug = prev.mps.overrideAttrs (old: {
|
||||||
pname = old.pname + "-debug";
|
pname = old.pname + "-debug";
|
||||||
env.NIX_CFLAGS_COMPILE = old.env.NIX_CFLAGS_COMPILE + " -g -DCONFIG_VAR_COOL";
|
# Need to do this to patch dwarf information. For some reason,
|
||||||
|
# stdenv copies the source into /build/source, and then builds
|
||||||
|
# from there, leaving all the dwarf information hanging.
|
||||||
|
env.NIX_CFLAGS_COMPILE =
|
||||||
|
old.env.NIX_CFLAGS_COMPILE + " " + "-fdebug-prefix-map=/build/source=${old.src}";
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue