File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717FROM gcr.io/oss-fuzz-base/base-builder-rust
1818
1919RUN apt-get update && apt-get install -y make autoconf automake libtool \
20- zlib1g-dev libffi-dev build-essential \
21- clang-12 llvm-12 llvm-12-dev llvm-12-tools
20+ zlib1g-dev libffi-dev build-essential libxml2-dev
21+
22+ # until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
23+ RUN rustup install nightly-2023-03-24
24+ RUN rustup component add rust-src --toolchain nightly-2023-03-24-x86_64-unknown-linux-gnu
2225
2326RUN git clone --depth 1 https://github.com/wasmerio/wasmer wasmer
2427
28+ RUN mkdir -p $SRC/.llvm && curl --proto '=https' --tlsv1.2 -sSf \
29+ https://github.com/wasmerio/llvm-custom-builds/releases/download/14.x/llvm-linux-amd64.tar.xz -L -o - | \
30+ tar xJv -C $SRC/.llvm
31+
2532WORKDIR wasmer
2633
2734COPY build.sh default.options $SRC/
Original file line number Diff line number Diff line change 1515#
1616# ###############################################################################
1717
18- export LLVM_SYS_120_PREFIX=$( llvm-config-12 --prefix)
18+ # until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
19+ rustup default nightly-2023-03-24
20+
21+ export LLVM_SYS_140_PREFIX=$( $SRC /.llvm/bin/llvm-config --prefix)
1922
2023cargo +nightly fuzz build universal_cranelift --features=universal,cranelift -O
2124cargo +nightly fuzz build universal_llvm --features=universal,llvm -O
You can’t perform that action at this time.
0 commit comments