Add feature to support WASM Relaxed SIMD (#1389)
This commit is contained in:
@@ -434,6 +434,11 @@ def _impl(ctx):
|
|||||||
name = "wasm_simd",
|
name = "wasm_simd",
|
||||||
requires = [feature_set(features = ["llvm_backend"])],
|
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(
|
feature(
|
||||||
name = "precise_long_double_printf",
|
name = "precise_long_double_printf",
|
||||||
enabled = True,
|
enabled = True,
|
||||||
@@ -560,6 +565,11 @@ def _impl(ctx):
|
|||||||
flags = ["-msimd128"],
|
flags = ["-msimd128"],
|
||||||
features = ["wasm_simd"],
|
features = ["wasm_simd"],
|
||||||
),
|
),
|
||||||
|
flag_set(
|
||||||
|
actions = all_compile_actions + all_link_actions,
|
||||||
|
flags = ["-msimd128", "-mrelaxed-simd"],
|
||||||
|
features = ["wasm_relaxed_simd"],
|
||||||
|
),
|
||||||
flag_set(
|
flag_set(
|
||||||
actions = all_link_actions,
|
actions = all_link_actions,
|
||||||
flags = ["-s", "PRINTF_LONG_DOUBLE=1"],
|
flags = ["-s", "PRINTF_LONG_DOUBLE=1"],
|
||||||
|
|||||||
Reference in New Issue
Block a user