The --stack-first link option doesn't exist any more

This commit is contained in:
Frank Denis 2023-02-07 13:01:40 +01:00
parent cadf901940
commit 5f32a74e1a
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"