We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733074a commit f4bd4b1Copy full SHA for f4bd4b1
1 file changed
src/bootstrap/src/core/builder/cargo.rs
@@ -683,11 +683,13 @@ impl Builder<'_> {
683
rustflags.arg("--cfg=windows_raw_dylib");
684
}
685
686
- rustflags.arg(match use_new_symbol_mangling {
687
- Some(true) => "-Csymbol-mangling-version=v0",
688
- Some(false) => "-Csymbol-mangling-version=legacy",
689
- None => "",
690
- });
+ if let Some(usm) = use_new_symbol_mangling {
+ rustflags.arg(if usm {
+ "-Csymbol-mangling-version=v0"
+ } else {
+ "-Csymbol-mangling-version=legacy"
691
+ });
692
+ }
693
694
// Always enable move/copy annotations for profiler visibility (non-stage0 only).
695
// Note that -Zannotate-moves is only effective with debugging info enabled.
0 commit comments