Skip to content

Commit 5298f62

Browse files
Fix linking for symbols starting with ?
1 parent 3f99982 commit 5298f62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

+1
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ pub(crate) fn linking_symbol_name_for_instance_in_crate<'tcx>(
572572
}
573573

574574
let prefix = match &target.arch[..] {
575+
"x86" if target.is_like_windows && undecorated.starts_with("?") => return undecorated,
575576
"x86" => Some('_'),
576577
"x86_64" => None,
577578
"arm64ec" => Some('#'),

0 commit comments

Comments
 (0)