diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-07-14 21:44:12 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2022-07-14 21:44:12 +0000 |
commit | d7fff81159bc2fd18159eec60f253002f4de7e29 (patch) | |
tree | 57dd83f8f2d15366501dbeff0351c29338c4bd59 /pkgs/build-support/setup-hooks/separate-debug-info.sh | |
parent | b2d57db6c205073942c6c7bb621135d0a0ca91a5 (diff) | |
download | nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar.gz nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar.bz2 nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar.lz nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar.xz nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.tar.zst nixpkgs-d7fff81159bc2fd18159eec60f253002f4de7e29.zip |
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.
Diffstat (limited to 'pkgs/build-support/setup-hooks/separate-debug-info.sh')
-rw-r--r-- | pkgs/build-support/setup-hooks/separate-debug-info.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/build-support/setup-hooks/separate-debug-info.sh b/pkgs/build-support/setup-hooks/separate-debug-info.sh index 1a23e6b198e..593a5f64862 100644 --- a/pkgs/build-support/setup-hooks/separate-debug-info.sh +++ b/pkgs/build-support/setup-hooks/separate-debug-info.sh @@ -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) |