about summary refs log tree commit diff
path: root/src/bootstrap/lib.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/lib.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/lib.rs')
-rw-r--r--src/bootstrap/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index c960053d7a0..6a51450a777 100644
--- a/src/bootstrap/lib.rs
+++ b/src/bootstrap/lib.rs
@@ -785,7 +785,7 @@ impl Build {
     /// Component directory that Cargo will produce output into (e.g.
     /// release/debug)
     fn cargo_dir(&self) -> &'static str {
-        if self.config.rust_optimize { "release" } else { "debug" }
+        if self.config.rust_optimize.is_release() { "release" } else { "debug" }
     }
 
     fn tools_dir(&self, compiler: Compiler) -> PathBuf {