forked from firka/flutter
Fix skwasm target in wasm_debug_unopt build. (#162100)
Fixes a couple issues in the skwasm build rules: * `DEMANGLE_SUPPORT` is deprecated in emscripten, so just remove it. * `sSHARED_MEMORY=1` needs to be added to the cflags so that emscripten appends the proper feature flags (`-matomics` and `-mbulk-memory`) when doing the compile so that the flags match the linking step.
This commit is contained in:
@@ -280,6 +280,9 @@ config("compiler") {
|
||||
if (wasm_use_pthreads) {
|
||||
cflags += [ "-pthread" ]
|
||||
ldflags += [ "-pthread" ]
|
||||
} if (wasm_shared_memory) {
|
||||
cflags += [ "-sSHARED_MEMORY=1" ]
|
||||
ldflags += [ "-sSHARED_MEMORY=1" ]
|
||||
}
|
||||
ldflags += [
|
||||
"-s",
|
||||
|
||||
@@ -12,6 +12,7 @@ declare_args() {
|
||||
emsdk_dir = rebase_path("//flutter/prebuilts/emsdk")
|
||||
|
||||
wasm_use_pthreads = false
|
||||
wasm_shared_memory = false
|
||||
wasm_use_dwarf = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user