Revert "[skwasm] Dynamic Threading (#164748)" (#165350)

This reverts commit b2a4a05683.

This has been causing issues when rolling to flutter/packages repo. See
https://github.com/flutter/flutter/issues/165347.
This commit is contained in:
Jackson Gardner
2025-03-17 16:40:59 -07:00
committed by GitHub
parent b836fb2682
commit 1d954f4e96
16 changed files with 314 additions and 210 deletions

View File

@@ -277,9 +277,9 @@ config("compiler") {
}
if (is_wasm) {
if (wasm_use_workers) {
cflags += [ "-sWASM_WORKERS=1" ]
ldflags += [ "-sWASM_WORKERS=1" ]
if (wasm_use_pthreads) {
cflags += [ "-pthread" ]
ldflags += [ "-pthread" ]
} if (wasm_shared_memory) {
cflags += [ "-sSHARED_MEMORY=1" ]
ldflags += [ "-sSHARED_MEMORY=1" ]
@@ -396,12 +396,12 @@ config("compiler") {
# to say that it does. Define them here instead.
defines += [ "HAVE_SYS_UIO_H" ]
# When Android requires new flags consider also editing the flags in
# the following locations.
# When Android requires new flags consider also editing the flags in
# the following locations.
# Framework plugin_ffi template: packages/flutter_tools/templates/plugin_ffi/src.tmpl/CMakeLists.txt.tmpl
# Example PR: https://github.com/flutter/flutter/pull/155508
# Dart Lang JNI package: pkgs/jni/src/CMakeLists.txt
# Example PR: https://github.com/dart-lang/native/pull/1615
# Dart Lang JNI package: pkgs/jni/src/CMakeLists.txt
# Example PR: https://github.com/dart-lang/native/pull/1615
ldflags += [
"-Wl,--no-undefined",
"-Wl,--exclude-libs,ALL",

View File

@@ -11,7 +11,7 @@ declare_args() {
# The location of an activated embedded emsdk.
emsdk_dir = rebase_path("//flutter/prebuilts/emsdk")
wasm_use_workers = false
wasm_use_pthreads = false
wasm_shared_memory = false
wasm_use_dwarf = false
}