Skip to content

Commit

Permalink
feat: compile with emulated 256-bit wide intrinsics
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhirn committed Jan 31, 2025
1 parent e6120cd commit 9e87bf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -eu
# - SIMD see https://emscripten.org/docs/porting/simd.html
# - Compiler settings see https://emscripten.org/docs/tools_reference/settings_reference.html
# - Clang CLI flags see https://clang.llvm.org/docs/ClangCommandLineReference.html#webassembly
emcc -std=c89 -Wall -Wextra -Werror -Wno-type-limits \
-O3 -flto -msimd128 -mavx \
emcc -std=c89 -Wall -Wextra -Werror -Wno-type-limits -Wno-error=incompatible-pointer-types \
-O3 -flto -msimd128 -mavx2 \
--no-entry \
-sSTRICT \
-sWASM_BIGINT \
Expand All @@ -21,6 +21,7 @@ set -eu
-sALLOW_MEMORY_GROWTH \
-sEXPORTED_FUNCTIONS=_malloc,_free,_argon2_hash,_argon2_verify,_argon2_error_message,_argon2_encodedlen \
-DARGON2_NO_THREADS \
-D__AVX2__ \
--cache=../.emscripten \
-Iinclude \
-o ../src/argon2.wasm \
Expand Down

0 comments on commit 9e87bf4

Please sign in to comment.