Skip to content

Commit 5534e77

Browse files
committed
_blake2: build statically all hashing modules
1 parent c2741c8 commit 5534e77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Modules/Setup.local

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ _decimal _decimal/_decimal.c _decimal/libmpdec/basearith.c _decimal/libmpdec/con
4242
CTYPES_FLAGS=-DHAVE_FFI_PREP_CIF_VAR=1 -DHAVE_FFI_PREP_CLOSURE_LOC=1 -DHAVE_FFI_CLOSURE_ALLOC=1
4343
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/cfield.c _ctypes/stgdict.c $(CTYPES_FLAGS) -L/usr/local/faasm/llvm-sysroot/lib/wasm32-wasi -lffi
4444

45+
# Hashing support - build statically as pyodide does
46+
# https://github.com/pyodide/pyodide/blob/main/cpython/Setup.local#L37-L42
47+
_sha1 sha1module.c
48+
_sha256 sha256module.c
49+
_sha512 sha512module.c
50+
_sha3 _sha3/sha3module.c
51+
_md5 md5module.c
52+
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
53+
4554
# Disable things we definitely don't need
4655

4756
*disabled*

0 commit comments

Comments
 (0)