Make mir_opt_level default to 2 for optimized levels
This commit is contained in:
parent
782c7b04cf
commit
421fd8ebbc
@ -641,7 +641,10 @@ impl Session {
|
|||||||
self.opts.debugging_opts.binary_dep_depinfo
|
self.opts.debugging_opts.binary_dep_depinfo
|
||||||
}
|
}
|
||||||
pub fn mir_opt_level(&self) -> usize {
|
pub fn mir_opt_level(&self) -> usize {
|
||||||
self.opts.debugging_opts.mir_opt_level.unwrap_or(1)
|
self.opts
|
||||||
|
.debugging_opts
|
||||||
|
.mir_opt_level
|
||||||
|
.unwrap_or_else(|| if self.opts.optimize != config::OptLevel::No { 2 } else { 1 })
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the features enabled for the current compilation session.
|
/// Gets the features enabled for the current compilation session.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user