mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
ab501e5716
commit
f03d6497cb
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user