Skip to content

Commit

Permalink
Use the base profile name when returning finishing
Browse files Browse the repository at this point in the history
See the NOTE block: this is still "a bit inaccurate", but perhaps it's
more accurate than just "release"/"dev".

Refs rust-lang#4140
  • Loading branch information
dwijnand committed May 5, 2018
1 parent d19e295 commit 0c7bd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down

0 comments on commit 0c7bd11

Please sign in to comment.