ui: Compile WASM with -msimd128
Change-Id: I3f0203fb7bab97748429a9213783b65d1bc24aa1
diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
index 0af6551..1b23035 100644
--- a/gn/standalone/BUILD.gn
+++ b/gn/standalone/BUILD.gn
@@ -286,6 +286,14 @@
}
}
+ if (is_wasm) {
+ # As of writing (2023-06-12) WASM 128bit SIMD is supported on
+ # stable Chrome, Safari, and Firefox. See:
+ # - https://webassembly.org/roadmap/
+ # - https://emscripten.org/docs/porting/simd.html
+ cflags += [ "-msimd128" ]
+ }
+
if (is_linux) {
# Enable LFS (large file support) for stat() and other syscalls.
cflags += [