separateDebugInfo: enable full Rust debug info
By default, Cargo will only enable line tables. -g enables full debug info. The RUSTFLAGS environment variable is examined by Cargo, similar to how the NIX_*FLAGS* variables are examined by our compiler wrappers.
This commit is contained in:
parent
b2d57db6c2
commit
d7fff81159
|
@ -1,6 +1,7 @@
|
|||
export NIX_SET_BUILD_ID=1
|
||||
export NIX_LDFLAGS+=" --compress-debug-sections=zlib"
|
||||
export NIX_CFLAGS_COMPILE+=" -ggdb -Wa,--compress-debug-sections"
|
||||
export RUSTFLAGS+=" -g"
|
||||
dontStrip=1
|
||||
|
||||
fixupOutputHooks+=(_separateDebugInfo)
|
||||
|
|
Loading…
Reference in a new issue