Skip to content

Commit

Permalink
Auto merge of rust-lang#10516 - Alexendoo:split-debuginfo, r=flip1995
Browse files Browse the repository at this point in the history
Use `split-debuginfo = "unpacked"` for debug builds

On Windows this has no effect as it's unsupported. On macOS the default set by cargo is already unpacked so no effect there either

For Linux it shaves a bit off the rebuild time, for me in the case of a simple `touch` + `cargo build` it goes from 12s to 10s

It saves a good amount of disk space too, on `aarch64-unknown-linux-gnu` it saves 1.2GB for a plain `cargo build`, 3GB when also running `cargo dev` and `cargo test --no-run -F internal`

r? `@flip1995`

changelog: none
  • Loading branch information
bors committed Mar 24, 2023
2 parents d5e2a7a + a90e5cc commit 00e9372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ target-dir = "target"

[unstable]
binary-dep-depinfo = true

[profile.dev]
split-debuginfo = "unpacked"
2 changes: 2 additions & 0 deletions .github/workflows/clippy_bors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ jobs:

# Run
- name: Build Integration Test
env:
CARGO_PROFILE_DEV_SPLIT_DEBUGINFO: off
run: cargo test --test integration --features integration --no-run

# Upload
Expand Down

0 comments on commit 00e9372

Please sign in to comment.