about summary refs log tree commit diff
path: root/src/bootstrap/test.rs
diff options
context:
space:
mode:
authorhi-rustin <rustin.liu@gmail.com>2023-06-18 14:38:58 +0800
committerhi-rustin <rustin.liu@gmail.com>2023-07-01 16:03:42 +0800
commite6e2825bb018baa4f0f6dfecd4206beb73d3ebf4 (patch)
tree45dd16bda258fa377d6370cf71b924e3e4a4a63f /src/bootstrap/test.rs
parent6b06fdfcd4f06ba95123624f8e21de6bdeea3616 (diff)
downloadrust-e6e2825bb018baa4f0f6dfecd4206beb73d3ebf4.tar.gz
rust-e6e2825bb018baa4f0f6dfecd4206beb73d3ebf4.zip
Use RustOptimize to set optimize
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Diffstat (limited to 'src/bootstrap/test.rs')
-rw-r--r--src/bootstrap/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index 2c1f612e39f..a2938ab4caf 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -801,7 +801,7 @@ impl Step for Clippy {
         cargo.arg("-p").arg("clippy_dev");
         // clippy_dev gets confused if it can't find `clippy/Cargo.toml`
         cargo.current_dir(&builder.src.join("src").join("tools").join("clippy"));
-        if builder.config.rust_optimize {
+        if builder.config.rust_optimize.is_release() {
             cargo.env("PROFILE", "release");
         } else {
             cargo.env("PROFILE", "debug");