mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 13:18:47 +00:00
Disable debuginfo in dev builds
Hopefully, this makes printf debugging faster!
This commit is contained in:
parent
317df32eb5
commit
9a04426617
2 changed files with 3 additions and 2 deletions
|
@ -14,7 +14,6 @@ matrix:
|
||||||
script:
|
script:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
- rustup component add rust-src
|
- rustup component add rust-src
|
||||||
- sed -i "s/debug = 1/debug = false/g" Cargo.toml
|
|
||||||
- cargo test --no-run # let's measure compile time separately
|
- cargo test --no-run # let's measure compile time separately
|
||||||
- cargo test
|
- cargo test
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -2,7 +2,9 @@
|
||||||
members = [ "crates/*", "xtask/" ]
|
members = [ "crates/*", "xtask/" ]
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
debug = 1 # only line info
|
# disabling debug info speeds up builds a bunch,
|
||||||
|
# and we don't rely on it for debugging that much.
|
||||||
|
debug = 0
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
incremental = true
|
incremental = true
|
||||||
|
|
Loading…
Reference in a new issue