aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorflysand7 <thebumboni@gmail.com>2025-01-17 02:15:30 +0300
committerflysand7 <thebumboni@gmail.com>2025-01-17 02:51:22 +0300
commit3f20b6324353cfb9e3ad27fe9ee5f8d07148911b (patch)
tree84224438fea8d3962b69284fc98db5258eee7428 /src/check_expr.cpp
parent4f0206ce08593628bf9458b623f61c2989558f69 (diff)
Error if -no-thread-local is used in presence of -no-crt on Unix
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 7574c20a7..349c5dbae 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1822,19 +1822,6 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
break;
case Entity_Variable:
- if (e->kind == Entity_Variable && build_context.no_crt && !build_context.no_thread_local && e->Variable.thread_local_model != "") {
- switch (build_context.metrics.os) {
- case TargetOs_linux:
- case TargetOs_darwin:
- case TargetOs_essence:
- case TargetOs_freebsd:
- case TargetOs_openbsd:
- case TargetOs_netbsd:
- case TargetOs_haiku:
- Token token = ast_token(n);
- error(token, "Illegal usage of thread locals: '%.*s'", LIT(e->token.string));
- }
- }
e->flags |= EntityFlag_Used;
if (type == t_invalid) {
o->type = t_invalid;