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:
Alyssa Ross 2022-07-14 21:44:12 +00:00
parent b2d57db6c2
commit d7fff81159
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -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)