mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.parser: improve error message when no arch is set 'asm{}' (#12093)
This commit is contained in:
parent
e53682320c
commit
32259af2c9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user