diff --git a/.clusterfuzzlite/build.sh b/.clusterfuzzlite/build.sh index be3caaa1..5b801c6d 100755 --- a/.clusterfuzzlite/build.sh +++ b/.clusterfuzzlite/build.sh @@ -2,6 +2,12 @@ # SPDX-License-Identifier: MPL-2.0 cd "$SRC"/echidna cargo +nightly fuzz build +# `fuzz` is excluded from the workspace (`Cargo.toml:154-157`), so +# cargo-fuzz writes artefacts into the fuzz crate's own target dir +# (`fuzz/target//release/`) rather than the workspace +# `./target/`. cp from the correct path or every iteration of the +# loop fails with `cp: cannot stat …/target/x86_64-…/release/` +# and bash -eu exits on the first miss (echidna#143). for target in $(cargo +nightly fuzz list); do - cp ./target/x86_64-unknown-linux-gnu/release/$target $OUT/ + cp ./fuzz/target/x86_64-unknown-linux-gnu/release/$target $OUT/ done