wasm: force single threaded

This commit is contained in:
Shritesh Bhattarai
2019-04-13 18:40:28 -05:00
committed by Andrew Kelley
parent 68d7e4a1b6
commit 0f1d92e2cf
3 changed files with 9 additions and 0 deletions

View File

@@ -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);