Skip to content

Commit 1b504c0

Browse files
Correctly handle "master" feature
1 parent 08d1cef commit 1b504c0

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_codegen_gcc/build_system/src

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_gcc/build_system/src/build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
107107
rustflags.push_str(" -Cpanic=abort -Zpanic-abort-tests");
108108
}
109109
rustflags.push_str(" -Z force-unstable-if-unmarked");
110+
if config.no_default_features {
111+
rustflags.push_str(" -Csymbol-mangling-version=v0");
112+
}
110113
let mut env = env.clone();
111114

112115
let mut args: Vec<&dyn AsRef<OsStr>> = vec![&"cargo", &"build", &"--target", &config.target];

0 commit comments

Comments
 (0)