Skip to content

Commit

Permalink
feat(wasmer): Update build scripts to latest release (google#12686)
Browse files Browse the repository at this point in the history
We recently released a new version of Wasmer and, among other things, we
now use LLVM 18 and rust 1.81: this small patch bumps them to the
correct versions in the scripts.

---------

Co-authored-by: Vitor Guidi <[email protected]>
  • Loading branch information
xdoardo and vitorguidi authored Nov 7, 2024
1 parent 84e73c1 commit 7f138b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions projects/wasmer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
FROM gcr.io/oss-fuzz-base/base-builder-rust

RUN apt-get update && apt-get install -y make autoconf automake libtool \
zlib1g-dev libffi-dev build-essential libxml2-dev
zlib1g-dev libffi-dev build-essential libxml2-dev

RUN git clone --depth 1 https://github.com/wasmerio/wasmer wasmer

RUN mkdir -p $SRC/.llvm && curl --proto '=https' --tlsv1.2 -sSf \
https://github.com/wasmerio/llvm-custom-builds/releases/download/15.x/llvm-linux-amd64.tar.xz -L -o - | \
https://github.com/wasmerio/llvm-custom-builds/releases/download/18.x/llvm-linux-amd64.tar.xz -L -o -| \
tar xJv -C $SRC/.llvm

WORKDIR wasmer

# dead code warnings with nightly-2024-07-12
ENV RUSTUP_TOOLCHAIN nightly-2024-02-12
ENV RUSTUP_TOOLCHAIN nightly-2024-10-10

COPY build.sh default.options $SRC/
6 changes: 1 addition & 5 deletions projects/wasmer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
#
################################################################################

export LLVM_SYS_150_PREFIX=$($SRC/.llvm/bin/llvm-config --prefix)
export LLVM_SYS_180_PREFIX=$($SRC/.llvm/bin/llvm-config --prefix)

# Needed for coverage to work.
nightly="+$RUSTUP_TOOLCHAIN"

pushd $SRC/wasmer/fuzz
cargo update -p serde --precise 1.0.203
popd

cargo $nightly fuzz build universal_cranelift --features=universal,cranelift -O
cargo $nightly fuzz build universal_llvm --features=universal,llvm -O
cargo $nightly fuzz build universal_singlepass --features=universal,singlepass -O
Expand Down
8 changes: 4 additions & 4 deletions projects/wasmer/project.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
homepage: "https://github.com/wasmerio/wasmer"
language: rust
main_repo: "https://github.com/wasmerio/wasmer"
primary_contact: "syrus@wasmer.io"
primary_contact: "edoardo@wasmer.io"
auto_ccs:
- michael@wasmer.io
- felix@wasmer.io
- sebastien@wasmer.io
- syrus@wasmer.io
- christoph@wasmer.io
- amin@wasmer.io
sanitizers:
- address
fuzzing_engines:
Expand Down

0 comments on commit 7f138b9

Please sign in to comment.