stdenvAdapters.keepDebugInfo: add Rust support (#425148)

This commit is contained in:
Philip Taron
2025-07-14 20:49:42 -07:00
committed by GitHub

View File

@@ -295,6 +295,7 @@ rec {
dontStrip = true;
env = (args.env or { }) // {
NIX_CFLAGS_COMPILE = toString (args.env.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og";
NIX_RUSTFLAGS = toString (args.env.NIX_RUSTFLAGS or "") + " -g -C opt-level=0 -C strip=none";
};
});
});