mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-19 11:51:33 +00:00
Minor fixes to labels; restrict to amd64 usage
This commit is contained in:
@@ -2696,6 +2696,10 @@ gb_internal Ast *parse_asm_template(AstFile *f) {
|
||||
asm_instructions = slice_from_array(instructions);
|
||||
}
|
||||
|
||||
if (build_context.metrics.arch != TargetArch_amd64) {
|
||||
syntax_error(token, "asm templates are currently only supported on -target:amd64");
|
||||
}
|
||||
|
||||
Ast *asm_template = alloc_ast_node(f, Ast_AsmTemplate);
|
||||
asm_template->AsmTemplate.token = token;
|
||||
asm_template->AsmTemplate.has_side_effects = has_side_effects;
|
||||
|
||||
Reference in New Issue
Block a user