aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-28 15:40:00 +0000
committergingerBill <bill@gingerbill.org>2022-02-28 15:40:00 +0000
commit410b85b5c7f768543e03c9fc6f47f8c2efcd602b (patch)
treeff75f12afbb05c5e4b651d9dc1b4a17cd81575bb /src/checker.cpp
parent0ae012ba08c1981952dc508ab2b6244331926ba1 (diff)
Disallow `@(thread_local)` on wasm targets
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 660691276..b1abdcb8a 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -2271,7 +2271,7 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
str_lit("args__"),
);
- FORCE_ADD_RUNTIME_ENTITIES(build_context.no_crt,
+ FORCE_ADD_RUNTIME_ENTITIES((build_context.no_crt && !is_arch_wasm()),
// NOTE(bill): Only if these exist
str_lit("_tls_index"),
str_lit("_fltused"),