Skip to content

Emit Linux .debug for release-lto (split-debuginfo = packed) - #163

Open
theRTC204 wants to merge 1 commit into
EpicGames:mainfrom
theRTC204:fix/split-debuginfo-x86-64-linux
Open

Emit Linux .debug for release-lto (split-debuginfo = packed)#163
theRTC204 wants to merge 1 commit into
EpicGames:mainfrom
theRTC204:fix/split-debuginfo-x86-64-linux

Conversation

@theRTC204

Copy link
Copy Markdown

Summary

Adds a [target.x86_64-unknown-linux-gnu] section to .cargo/config.toml to enable split debug info for x86-64 Linux builds. Without this block, target-specific rustflags tables fully replace [build].rustflags rather than merging, so the x86_64-unknown-linux-gnu target was silently falling back to the [build] defaults - which don't set split-debuginfo at all, so x86_64 Linux fell back to rustc's platform default of off — full DWARF embedded directly in the .so/binary rather than split into a companion file, producing release artifacts noticeably larger than every other platform. The new block repeats the required cfg and codegen flags.

@theRTC204

Copy link
Copy Markdown
Author

Note that I titled this new ADR as 00021 to leave space for potentially correctly the multiple 00018's that exist as noted in #162 but please let me know if you'd like me to close the gap back to 00019.

Adds a `[target.x86_64-unknown-linux-gnu]` section to `.cargo/config.toml` to enable split debug info for x86-64 Linux builds. Without this block, target-specific `rustflags` tables fully replace `[build].rustflags` rather than merging, so the `x86_64-unknown-linux-gnu` target was silently falling back to the `[build]` defaults - which don't set split-debuginfo at all, so x86_64 Linux fell back to rustc's platform default of off — full DWARF embedded directly in the .so/binary rather than split into a companion file, producing release artifacts noticeably larger than every other platform. The new block repeats the required cfg and codegen flags.

Signed-off-by: Ryan Carbotte <ryancarbotte@gmail.com>
@theRTC204
theRTC204 force-pushed the fix/split-debuginfo-x86-64-linux branch from ac85b76 to d2a58b8 Compare August 9, 2026 16:09
@ajcarberry ajcarberry added the documentation Improvements or additions to documentation label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Development

Successfully merging this pull request may close these issues.

2 participants