Merge pull request #7658 from corleypc/must-tail-wasm-fix

Fixes #must_tail on wasm targets
This commit is contained in:
gingerBill authored and GitHub committed 2026-09-29 13:03:59 +01:00
commit d5a2ff0619
4 files changed
+17 -19

No files matched your search

+3
View File
@@ -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;
}