Skip to content

Commit 6994ee3

Browse files
Fix linking for symbols starting with ?
1 parent 8cdc67e commit 6994ee3

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
@@ -577,6 +577,7 @@ pub(crate) fn linking_symbol_name_for_instance_in_crate<'tcx>(
577577
}
578578

579579
let prefix = match &target.arch[..] {
580+
"x86" if target.is_like_windows && undecorated.starts_with("?") => return undecorated,
580581
"x86" => Some('_'),
581582
"x86_64" => None,
582583
"arm64ec" => Some('#'),

0 commit comments

Comments
 (0)