mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
Merge pull request #7658 from corleypc/must-tail-wasm-fix
Fixes #must_tail on wasm targets
This commit is contained in:
4 files changed
+17
-19
No files matched your search
@@ -9183,6 +9183,9 @@ gb_internal ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *c
|
||||
gb_string_free(b);
|
||||
gb_string_free(a);
|
||||
}
|
||||
if (is_arch_wasm() && !check_target_feature_is_enabled(str_lit("tail-call"), nullptr)) {
|
||||
error(call, "'#must_tail' on a WebAssembly target requires the 'tail-call' target feature, e.g. '-target-features:tail-call'");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user