mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +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.
(cherry picked from commit f03d6497cb
)
This commit is contained in:
parent
e4a734f61d
commit
339d39157c
@ -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