Ensure [rust] debuginfo-level-std doesn't change core's MIR
This commit is contained in:
parent
6094063c35
commit
90b4c86335
9 changed files with 38 additions and 157 deletions
|
|
@ -2102,6 +2102,14 @@ impl<'a> Builder<'a> {
|
|||
// break when incremental compilation is enabled. So this overrides the "no inlining
|
||||
// during incremental builds" heuristic for the standard library.
|
||||
rustflags.arg("-Zinline-mir");
|
||||
|
||||
// always pass this after the next `#[cfg(bootstrap)]` update.
|
||||
if compiler.stage != 0 {
|
||||
// Similarly, we need to keep debug info for functions inlined into other std functions,
|
||||
// even if we're not going to output debuginfo for the crate we're currently building,
|
||||
// so that it'll be available when downstream consumers of std try to use it.
|
||||
rustflags.arg("-Zinline-mir-preserve-debug");
|
||||
}
|
||||
}
|
||||
|
||||
if self.config.rustc_parallel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue