diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0c75b8a9..c0648cdd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,7 +18,7 @@ jobs: - script: | curl -sL -o - https://ziglang.org/download/0.10.1/zig-linux-x86_64-0.10.1.tar.xz | tar xJ -f - -C /opt/ sudo mv /opt/zig-* /opt/zig - env PATH=/opt/zig/bin:/opt/zig:$PATH + export PATH=/opt/zig/bin:/opt/zig:$PATH displayName: Install the Zig SDK - script: | env WASMER_DIR=${HOME}/.wasmer PATH=${HOME}/.wasmer/bin:${HOME}/.cargo/bin:$PATH dist-build/wasm32-wasi.sh diff --git a/dist-build/wasm32-wasi.sh b/dist-build/wasm32-wasi.sh index 7e20be53..7b869d3b 100755 --- a/dist-build/wasm32-wasi.sh +++ b/dist-build/wasm32-wasi.sh @@ -7,8 +7,8 @@ export PREFIX="$(pwd)/libsodium-wasm32-wasi" mkdir -p $PREFIX || exit 1 export CC="zig cc" -export CFLAGS="--target=wasm32-wasi -O2" -export LDFLAGS="-s -Wl,--stack-first" +export CFLAGS="--target=wasm32-wasi -O3" +export LDFLAGS="-s" export AR="zig ar" export RANLIB="zig ranlib"