mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
fix msvc asm not support in cross mode
This commit is contained in:
parent
2a7735f7d4
commit
f82b6f01b1
1 changed files with 1 additions and 1 deletions
|
@ -2667,7 +2667,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
|
||||||
g.writeln('goto ${c_name(node.name)};')
|
g.writeln('goto ${c_name(node.name)};')
|
||||||
}
|
}
|
||||||
ast.AsmStmt {
|
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.error('msvc does not support inline assembly', node.pos)
|
||||||
}
|
}
|
||||||
g.write_v_source_line_info_stmt(node)
|
g.write_v_source_line_info_stmt(node)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue