From f82b6f01b1076b11d8c7fcc5737c3bfa1de8b46e Mon Sep 17 00:00:00 2001 From: kbkpbot Date: Sun, 24 Aug 2025 09:53:11 +0800 Subject: [PATCH] fix msvc asm not support in cross mode --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 39bca2abf9..7ebbe08640 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -2667,7 +2667,7 @@ fn (mut g Gen) stmt(node ast.Stmt) { g.writeln('goto ${c_name(node.name)};') } ast.AsmStmt { - if g.is_cc_msvc { + if g.is_cc_msvc && !g.pref.output_cross_c { g.error('msvc does not support inline assembly', node.pos) } g.write_v_source_line_info_stmt(node)