Don't print the "total" -Ztime-passes
output if --prints=...
is also given.
Fixes #64339.
This commit is contained in:
parent
ca3766e2e5
commit
bb229865fa
@ -132,8 +132,11 @@ pub struct TimePassesCallbacks {
|
||||
|
||||
impl Callbacks for TimePassesCallbacks {
|
||||
fn config(&mut self, config: &mut interface::Config) {
|
||||
// If a --prints=... option has been given, we don't print the "total"
|
||||
// time because it will mess up the --prints output. See #64339.
|
||||
self.time_passes =
|
||||
config.opts.debugging_opts.time_passes || config.opts.debugging_opts.time;
|
||||
config.opts.prints.is_empty() &&
|
||||
(config.opts.debugging_opts.time_passes || config.opts.debugging_opts.time);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user