Added -no-tls flag

This commit is contained in:
bumbread
2023-03-13 20:25:13 +11:00
parent 56bfbbf501
commit 5f3b6c9722
3 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -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");