From e6e2825bb018baa4f0f6dfecd4206beb73d3ebf4 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sun, 18 Jun 2023 14:38:58 +0800 Subject: Use RustOptimize to set optimize Signed-off-by: hi-rustin --- src/bootstrap/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootstrap/lib.rs') 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 { -- cgit 1.4.1-3-g733a5