diff options
| author | bors <bors@rust-lang.org> | 2023-03-24 12:53:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-03-24 12:53:04 +0000 |
| commit | 00e9372987755dece96561ef2eef0785c8742e55 (patch) | |
| tree | 0f68441fec3a49e613b819fed88b0ca92b9db5d8 | |
| parent | d5e2a7aca55ed49fc943b7a07a8eba05ab5a0079 (diff) | |
| parent | a90e5cc9af1fcf7897194ac6a275407dc54db689 (diff) | |
| download | rust-00e9372987755dece96561ef2eef0785c8742e55.tar.gz rust-00e9372987755dece96561ef2eef0785c8742e55.zip | |
Auto merge of #10516 - Alexendoo:split-debuginfo, r=flip1995
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
| -rw-r--r-- | .cargo/config.toml | 3 | ||||
| -rw-r--r-- | .github/workflows/clippy_bors.yml | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml index f3dd9275a42..4d80d3ce63d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,3 +11,6 @@ target-dir = "target" [unstable] binary-dep-depinfo = true + +[profile.dev] +split-debuginfo = "unpacked" diff --git a/.github/workflows/clippy_bors.yml b/.github/workflows/clippy_bors.yml index 24e677ce8e1..93198aabdb5 100644 --- a/.github/workflows/clippy_bors.yml +++ b/.github/workflows/clippy_bors.yml @@ -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 |
