From 2e62bc61393c8c9daf59dba689bf0b7e558f259c Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Fri, 6 Oct 2023 19:30:22 +0000 Subject: [PATCH] Fix Windows --- src/inline_asm.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inline_asm.rs b/src/inline_asm.rs index ca0f34e39..02c46465b 100644 --- a/src/inline_asm.rs +++ b/src/inline_asm.rs @@ -605,8 +605,8 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> { writeln!(generated_asm, "_{}:", asm_name).unwrap(); } BinaryFormat::Coff => { - writeln!(generated_asm, ".globl _{}", asm_name).unwrap(); - writeln!(generated_asm, "_{}:", asm_name).unwrap(); + writeln!(generated_asm, ".globl {}", asm_name).unwrap(); + writeln!(generated_asm, "{}:", asm_name).unwrap(); } _ => self .tcx