mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-27 12:17:12 +09:00
Bump up the max allowed memory for Emscripten. Might be required for scrypt.
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-js"
|
||||
export EXPORTED_FUNCTIONS='["_sodium_version_string"]'
|
||||
export TOTAL_MEMORY=33554432
|
||||
export OPTFLAGS="--llvm-lto 3 -Oz"
|
||||
export CFLAGS="$OPTFLAGS --pre-js=test/default/pre.js "
|
||||
export LDFLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS}"
|
||||
export LDFLAGS="-s EXPORTED_FUNCTIONS=${EXPORTED_FUNCTIONS} -s TOTAL_MEMORY=${TOTAL_MEMORY}"
|
||||
|
||||
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" && \
|
||||
emmake make clean &&
|
||||
|
||||
Reference in New Issue
Block a user