From c53b4cea259a2a12ea43988e84f35a1ebd8cb5aa Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 23 Jan 2022 00:04:57 +0100 Subject: [PATCH] Use deterministic signatures for benchmarking --- dist-build/wasm32-wasi.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist-build/wasm32-wasi.sh b/dist-build/wasm32-wasi.sh index eeb91afd..65b232ae 100755 --- a/dist-build/wasm32-wasi.sh +++ b/dist-build/wasm32-wasi.sh @@ -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