aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorShritesh Bhattarai <shritesh@shritesh.com>2019-04-13 18:40:28 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-04-14 10:21:48 -0400
commit0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98 (patch)
treeb23e55357b41fdacaf61fd2ce88a8faadb87d459 /src/main.cpp
parent68d7e4a1b60a52b59bc148a81458a89b9b739ab1 (diff)
downloadzig-0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98.tar.gz
zig-0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98.zip
wasm: force single threaded
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 85e5b0c042..e571e1ae62 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -921,6 +921,10 @@ int main(int argc, char **argv) {
}
}
+ if (target_is_single_threaded(&target)) {
+ is_single_threaded = true;
+ }
+
if (output_dir != nullptr && enable_cache == CacheOptOn) {
fprintf(stderr, "`--output-dir` is incompatible with --cache on.\n");
return print_error_usage(arg0);