diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index e160463909..4c8d34466a 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -875,6 +875,9 @@ fn (mut p Parser) asm_stmt(is_top_level bool) ast.AsmStmt { p.next() } if arch == ._auto && !p.pref.is_fmt { + if p.tok.lit == '' { + p.error('missing assembly architecture. Try i386, amd64 or arm64.') + } p.error('unknown assembly architecture') } if p.tok.kind != .name {