Use deterministic signatures for benchmarking

This commit is contained in:
Frank Denis 2022-01-23 00:04:57 +01:00
parent 5ad0239a1d
commit c53b4cea25

View File

@ -7,7 +7,7 @@ export PREFIX="$(pwd)/libsodium-wasm32-wasi"
mkdir -p $PREFIX || exit 1
export CC="zig cc"
export CFLAGS="-DED25519_NONDETERMINISTIC=1 --target=wasm32-wasi -O2"
export CFLAGS="--target=wasm32-wasi -O2"
export LDFLAGS="-s -Wl,--stack-first"
export AR="zig ar"
export RANLIB="zig ranlib"
@ -17,6 +17,8 @@ make distclean >/dev/null
if [ "x$1" = "x--bench" ]; then
export BENCHMARKS=1
export CPPFLAGS="-DBENCHMARKS -DITERATIONS=100"
else
export CPPFLAGS="-DED25519_NONDETERMINISTIC=1"
fi
if [ -n "$LIBSODIUM_MINIMAL_BUILD" ]; then