From 0c7bd11cdd35706bee310c78218b89dec8a5a0ef Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Sat, 5 May 2018 22:40:09 +0100 Subject: [PATCH] Use the base profile name when returning finishing See the NOTE block: this is still "a bit inaccurate", but perhaps it's more accurate than just "release"/"dev". Refs #4140 --- src/cargo/core/compiler/job_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/job_queue.rs b/src/cargo/core/compiler/job_queue.rs index 235dccc93e6..bef6757c824 100644 --- a/src/cargo/core/compiler/job_queue.rs +++ b/src/cargo/core/compiler/job_queue.rs @@ -257,7 +257,6 @@ impl<'a> JobQueue<'a> { } } - let build_type = if self.is_release { "release" } else { "dev" }; // NOTE: This may be a bit inaccurate, since this may not display the // profile for what was actually built. Profile overrides can change // these settings, and in some cases different targets are built with @@ -266,6 +265,7 @@ impl<'a> JobQueue<'a> { // profiles used. However, to keep it simple and compatible with old // behavior, we just display what the base profile is. let profile = cx.bcx.profiles.base_profile(self.is_release); + let build_type = profile.name; let mut opt_type = String::from(if profile.opt_level.as_str() == "0" { "unoptimized" } else {