From fdc48a242d4ca02f4453543a13244f198c0e4777 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 19 Mar 2024 22:36:56 +0000 Subject: Retype out the entire bindings for Orca --- src/check_decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 7221ee500..e74bc83de 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -1279,7 +1279,7 @@ gb_internal void check_global_variable_decl(CheckerContext *ctx, Entity *&e, Ast error(e->token, "A foreign variable declaration cannot have a default value"); } init_entity_foreign_library(ctx, e); - if (is_arch_wasm()) { + if (is_arch_wasm() && build_context.metrics.os != TargetOs_orca) { error(e->token, "A foreign variable declaration are not allowed for the '%.*s' architecture", LIT(target_arch_names[build_context.metrics.arch])); } } -- cgit v1.2.3