diff options
| author | Shritesh Bhattarai <shritesh@shritesh.com> | 2019-04-13 18:40:28 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-04-14 10:21:48 -0400 |
| commit | 0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98 (patch) | |
| tree | b23e55357b41fdacaf61fd2ce88a8faadb87d459 /src/main.cpp | |
| parent | 68d7e4a1b60a52b59bc148a81458a89b9b739ab1 (diff) | |
| download | zig-0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98.tar.gz zig-0f1d92e2cfda7ac633cc66fdf2b0e5e27cdf0f98.zip | |
wasm: force single threaded
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
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); |
