about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-08-23 10:31:38 +0200
committerSamuel Tardieu <sam@rfc1149.net>2025-08-23 10:40:20 +0200
commit2c28135116a99f1939ffc7f1bcb3b8580f4153c6 (patch)
tree07a5720c7e80fc210389100355920811362e5ff6
parent55286e796f2e3f549a2c8baa7a64d56bc225ccae (diff)
Use `.cargo/config.toml` for local compilation options
This will be ignored when Clippy is part of the compiler workspace.
Using `Cargo.toml` would complain about profiles defined outside the
top-level when run from the compiler repository.
-rw-r--r--.cargo/config.toml7
-rw-r--r--Cargo.toml7
2 files changed, 7 insertions, 7 deletions
diff --git a/.cargo/config.toml b/.cargo/config.toml
index d9c635df5dc..a09bf95e87b 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -23,3 +23,10 @@ split-debuginfo = "unpacked"
 rustflags = ["--remap-path-prefix", "=clippy_dev"]
 [profile.dev.package.lintcheck]
 rustflags = ["--remap-path-prefix", "=lintcheck"]
+
+# quine-mc_cluskey makes up a significant part of the runtime in dogfood
+# due to the number of conditions in the clippy_lints crate
+# and enabling optimizations for that specific dependency helps a bit
+# without increasing total build times.
+[profile.dev.package.quine-mc_cluskey]
+opt-level = 3
diff --git a/Cargo.toml b/Cargo.toml
index 2add525b7e8..b3618932ded 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,13 +65,6 @@ harness = false
 name = "dogfood"
 harness = false
 
-# quine-mc_cluskey makes up a significant part of the runtime in dogfood
-# due to the number of conditions in the clippy_lints crate
-# and enabling optimizations for that specific dependency helps a bit
-# without increasing total build times.
-[profile.dev.package.quine-mc_cluskey]
-opt-level = 3
-
 [lints.rust.unexpected_cfgs]
 level = "warn"
 check-cfg = ['cfg(bootstrap)']