Skip to content

Commit f81ebfb

Browse files
Match LLVM behavior more closely
Co-authored-by: David Wood <[email protected]>
1 parent a4c628c commit f81ebfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +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,
580+
"x86" | "x86_64" if target.is_like_msvc && undecorated.starts_with("?") => return undecorated,
581581
"x86" => Some('_'),
582582
"x86_64" => None,
583583
"arm64ec" => Some('#'),

0 commit comments

Comments
 (0)