[bazel] Remove asmjs / `-sWASM=0` support Emscripten is on track to remove this feature: https://github.com/emscripten-core/emscripten/issues/27608
diff --git a/bazel/emscripten_toolchain/toolchain.bzl b/bazel/emscripten_toolchain/toolchain.bzl index ae9eec9..7df5e77 100644 --- a/bazel/emscripten_toolchain/toolchain.bzl +++ b/bazel/emscripten_toolchain/toolchain.bzl
@@ -336,10 +336,6 @@ implies = ["crosstool_cpu_" + target_cpu], ), feature( - name = "crosstool_cpu_asmjs", - provides = ["variant:crosstool_cpu"], - ), - feature( name = "crosstool_cpu_wasm", provides = ["variant:crosstool_cpu"], ), @@ -558,11 +554,6 @@ # Emscripten-specific settings: flag_set( - actions = all_compile_actions + all_link_actions, - flags = ["-sWASM=0"], - features = ["crosstool_cpu_asmjs"], - ), - flag_set( actions = all_link_actions, flags = ["-sEXIT_RUNTIME"], features = ["exit_runtime"], @@ -1154,7 +1145,7 @@ emscripten_cc_toolchain_config_rule = rule( implementation = _impl, attrs = { - "cpu": attr.string(mandatory = True, values = ["asmjs", "wasm"]), + "cpu": attr.string(mandatory = True, values = ["wasm"]), "em_config": attr.label(mandatory = True, allow_single_file = True), "emscripten_binaries": attr.label(mandatory = True, cfg = "exec"), "_exec_platform_info": attr.label(