File tree 1 file changed +13
-3
lines changed
1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -988,10 +988,20 @@ impl<'a> Builder<'a> {
988
988
}
989
989
} ;
990
990
991
- if use_new_symbol_mangling {
992
- rustflags. arg ( "-Zsymbol-mangling-version=v0" ) ;
991
+ // cfg(bootstrap) -- drop the compiler.stage == 0 branch.
992
+ if compiler. stage == 0 {
993
+ if use_new_symbol_mangling {
994
+ rustflags. arg ( "-Zsymbol-mangling-version=v0" ) ;
995
+ } else {
996
+ rustflags. arg ( "-Zsymbol-mangling-version=legacy" ) ;
997
+ }
993
998
} else {
994
- rustflags. arg ( "-Zsymbol-mangling-version=legacy" ) ;
999
+ if use_new_symbol_mangling {
1000
+ rustflags. arg ( "-Csymbol-mangling-version=v0" ) ;
1001
+ } else {
1002
+ rustflags. arg ( "-Csymbol-mangling-version=legacy" ) ;
1003
+ rustflags. arg ( "-Zunstable-options" ) ;
1004
+ }
995
1005
}
996
1006
997
1007
// FIXME: It might be better to use the same value for both `RUSTFLAGS` and `RUSTDOCFLAGS`,
You can’t perform that action at this time.
0 commit comments