From f03d6497cb9b93d850f8158184da54e4e6c55d1d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 11 Jul 2024 18:54:13 +0200 Subject: [PATCH] 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. --- pkgs/build-support/setup-hooks/separate-debug-info.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/setup-hooks/separate-debug-info.sh b/pkgs/build-support/setup-hooks/separate-debug-info.sh index 197e8a920b70..ebc773a49218 100644 --- a/pkgs/build-support/setup-hooks/separate-debug-info.sh +++ b/pkgs/build-support/setup-hooks/separate-debug-info.sh @@ -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)