From 5f3b6c9722007d731193a90f97e566127120f6ed Mon Sep 17 00:00:00 2001 From: bumbread Date: Mon, 13 Mar 2023 20:25:13 +1100 Subject: Added -no-tls flag --- src/check_decl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 7978aa0ef..828009b3d 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -1143,9 +1143,12 @@ gb_internal void check_global_variable_decl(CheckerContext *ctx, Entity *&e, Ast if (is_arch_wasm() && e->Variable.thread_local_model.len != 0) { e->Variable.thread_local_model.len = 0; - // NOTE(bill): ignore this message for the time begin + // NOTE(bill): ignore this message for the time being // error(e->token, "@(thread_local) is not supported for this target platform"); } + if(build_context.no_tls) { + e->Variable.thread_local_model.len = 0; + } String context_name = str_lit("variable declaration"); -- cgit v1.2.3