Reapply "Changes a few compile options for the new emscripten (3.1.70)" (#917) This reverts commit 5cc1d951730517e0435e4a479b2e983b134cbc85.
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 608e36a..61e54bb 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn
@@ -292,6 +292,8 @@ "NO_EXIT_RUNTIME=1", "-s", "STRICT=1", + "-s", + "ENVIRONMENT=web,worker", # Reduces global namespace pollution. "-s",
diff --git a/build/toolchain/wasm.gni b/build/toolchain/wasm.gni index 1e4b953..7994057 100644 --- a/build/toolchain/wasm.gni +++ b/build/toolchain/wasm.gni
@@ -62,11 +62,6 @@ "{{root_out_dir}}/{{target_output_name}}.js.symbols", ] - if (wasm_use_pthreads || (defined(extra_toolchain_args.wasm_use_pthreads) && - extra_toolchain_args.wasm_use_pthreads)) { - link_outputs += [ "{{root_out_dir}}/{{target_output_name}}.worker.js" ] - } - if (is_debug && !wasm_use_dwarf) { link_outputs += [ "{{root_out_dir}}/{{target_output_name}}.wasm.map" ] }