From f97670a315babcd525f332dc1c2ed259a1ff32a4 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Thu, 30 Dec 2021 13:01:38 +0100 Subject: [PATCH] Don't enable optimizations in the dev profile I rarely use the dev profile anyway. --- Cargo.toml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 900411286b5..7d23b60d948 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,31 +40,15 @@ unstable-features = ["jit", "inline_asm"] jit = ["cranelift-jit", "libloading"] inline_asm = [] -[profile.dev] -# By compiling dependencies with optimizations, performing tests gets much faster. -opt-level = 3 - -[profile.dev.package.rustc_codegen_cranelift] -# Disabling optimizations for cg_clif itself makes compilation after a change faster. -opt-level = 0 - [profile.release.package.rustc_codegen_cranelift] incremental = true # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the # execution time of build scripts is so fast that optimizing them slows down the total build time. -[profile.dev.build-override] -opt-level = 0 -debug = false - [profile.release.build-override] opt-level = 0 debug = false -[profile.dev.package.cranelift-codegen-meta] -opt-level = 0 -debug = false - [profile.release.package.cranelift-codegen-meta] opt-level = 0 debug = false