diff options
| author | bumbread <thebumboni@gmail.com> | 2023-03-13 20:25:13 +1100 |
|---|---|---|
| committer | bumbread <thebumboni@gmail.com> | 2023-03-13 20:25:13 +1100 |
| commit | 5f3b6c9722007d731193a90f97e566127120f6ed (patch) | |
| tree | 2399d14b0c737bdb70f1786ea119725511ea51fa /src/check_decl.cpp | |
| parent | 56bfbbf50137ef1f9e551f5a783961cba7d92570 (diff) | |
Added -no-tls flag
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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"); |