Skip to content

Commit

Permalink
Add feature to support WASM Relaxed SIMD (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
yolanda15 authored May 30, 2024
1 parent 4205979 commit dd3b9c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bazel/emscripten_toolchain/toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ def _impl(ctx):
name = "wasm_simd",
requires = [feature_set(features = ["llvm_backend"])],
),
# Adds relaxed-simd support, only available with the llvm backend.
feature(
name = "wasm_relaxed_simd",
requires = [feature_set(features = ["llvm_backend"])],
),
feature(
name = "precise_long_double_printf",
enabled = True,
Expand Down Expand Up @@ -560,6 +565,11 @@ def _impl(ctx):
flags = ["-msimd128"],
features = ["wasm_simd"],
),
flag_set(
actions = all_compile_actions + all_link_actions,
flags = ["-msimd128", "-mrelaxed-simd"],
features = ["wasm_relaxed_simd"],
),
flag_set(
actions = all_link_actions,
flags = ["-s", "PRINTF_LONG_DOUBLE=1"],
Expand Down

0 comments on commit dd3b9c6

Please sign in to comment.