separateDebugInfo: tell rustc not to strip

There's no point generating debug info if the compiler immediately
strips it before we get a chance to do anything with it.

This is especially important since Cargo 1.77, which asks rustc to
strip by default.
This commit is contained in:
Alyssa Ross 2024-07-11 18:54:13 +02:00
parent ab501e5716
commit f03d6497cb

View File

@ -1,7 +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 NIX_RUSTFLAGS+=" -g"
export NIX_RUSTFLAGS+=" -g -C strip=none"
fixupOutputHooks+=(_separateDebugInfo)