Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion projects/wasmtime/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ build() {
shift
PROJECT_DIR=$SRC/$project

# ensure we get absolute paths for the coverage report
# Ensure we get absolute paths for the coverage report.
cd $PROJECT_DIR
crate_src_abspath=`cargo metadata --no-deps --format-version 1 | jq -r '.workspace_root'`
while read i; do
export RUSTFLAGS="$RUSTFLAGS --remap-path-prefix $i=$crate_src_abspath/$i"
done <<< "$(find . -name "*.rs" | cut -d/ -f2 | uniq)"

# Enable `cfg(arc_try_new)` for the OOM-handling fuzzer.
export RUSTFLAGS="$RUSTFLAGS --cfg=arc_try_new"

cd $PROJECT_DIR/fuzz && cargo fuzz build --sanitizer none --strip-dead-code -O --debug-assertions "$@"

FUZZ_TARGET_OUTPUT_DIR=$PROJECT_DIR/$fuzz_target_path/x86_64-unknown-linux-gnu/release
Expand Down
Loading