From 9a04426617bdf2ff4599f571ff03e44e2e4054eb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 11 Nov 2019 10:11:46 +0300 Subject: Disable debuginfo in dev builds Hopefully, this makes printf debugging faster! --- .travis.yml | 1 - Cargo.toml | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7d66f72d8..af71a9cce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ matrix: script: - rustup component add rustfmt - 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 env: diff --git a/Cargo.toml b/Cargo.toml index 97c02b40f..5c57020f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,9 @@ members = [ "crates/*", "xtask/" ] [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] incremental = true -- cgit v1.2.3