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_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