From 6b796dc1751d229875993b4d2255bf422f7a5614 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Fri, 31 Jan 2020 20:11:45 +0700 Subject: [PATCH 1/2] Improve release compile time --- Cargo.toml | 4 ++++ clippy_dev/Cargo.toml | 4 ++++ clippy_dummy/Cargo.toml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 84b96a329140..26b4af2e0a1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,3 +62,7 @@ rustc_tools_util = { version = "0.2.0", path = "rustc_tools_util"} [features] deny-warnings = [] integration = ["git2", "tempfile"] + +# Reduce build time by setting proc-macro crates non optimized. +[profile.release.build-override] +opt-level = 0 diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml index b30ba61d2991..384c7dacd9ad 100644 --- a/clippy_dev/Cargo.toml +++ b/clippy_dev/Cargo.toml @@ -14,3 +14,7 @@ walkdir = "2" [features] deny-warnings = [] + +# Reduce build time by setting proc-macro crates non optimized. +[profile.release.build-override] +opt-level = 0 diff --git a/clippy_dummy/Cargo.toml b/clippy_dummy/Cargo.toml index 7b11795fafdc..6de29759bdfa 100644 --- a/clippy_dummy/Cargo.toml +++ b/clippy_dummy/Cargo.toml @@ -15,3 +15,7 @@ categories = ["development-tools", "development-tools::cargo-plugins"] [build-dependencies] term = "0.6" + +# Reduce build time by setting proc-macro crates non optimized. +[profile.release.build-override] +opt-level = 0 From 2a815426bec76de98b6c7d32f9b398a356fb26ad Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Sun, 2 Feb 2020 00:26:34 +0700 Subject: [PATCH 2/2] Remove build-override as setting it make compile clippy_dev slower --- clippy_dev/Cargo.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/clippy_dev/Cargo.toml b/clippy_dev/Cargo.toml index 384c7dacd9ad..b30ba61d2991 100644 --- a/clippy_dev/Cargo.toml +++ b/clippy_dev/Cargo.toml @@ -14,7 +14,3 @@ walkdir = "2" [features] deny-warnings = [] - -# Reduce build time by setting proc-macro crates non optimized. -[profile.release.build-override] -opt-level = 0