aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-31 20:54:53 -0500
committerbrian cully <bjc@spork.org>2025-12-31 20:54:53 -0500
commit1eedad18506384b12509c7039a2709d039c92760 (patch)
tree324781eede6b2121f6e7a1c8730ce4c776cb5d2e
parent9be1ec65dc31a8eba0993250be1dce91e1a3a3a6 (diff)
downloadpolyring-1eedad18506384b12509c7039a2709d039c92760.tar.gz
polyring-1eedad18506384b12509c7039a2709d039c92760.zip
turn on wasm simdHEADmain
-rw-r--r--Makefile2
-rw-r--r--shell.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 712b55c..efc344b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ WASMPACKFLAGS=--no-pack --no-typescript
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
rust:
- wasm-pack build --target web --out-dir $(BUILDDIR)/rust $(WASMPACKFLAGS) -- --color always
+ wasm-pack build --target web --out-dir $(BUILDDIR)/rust $(WASMPACKFLAGS) -- --color always --config build.rustflags="'-C target-feature=+simd128'"
test:
cargo test --color always -- --nocapture
diff --git a/shell.nix b/shell.nix
index 3d960fa..172a6b0 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,6 +1,6 @@
{ pkgs ? import <nixpkgs> {} }:
-pkgs.mkShellNoCC {
+pkgs.mkShell {
packages = with pkgs; [
rustc
clang # yes, it's necessary or ‘cc’ can't be found. -bjc 2025-aug-7