Skip to content

Commit

Permalink
opensk: do not specify nightly (#6648)
Browse files Browse the repository at this point in the history
* opensk: do not specify nightly

so that coverage works because we use the cargo wrapper
which looks for fuzz build argument at the beginning

* opensk: use RUSTUP_TOOLCHAIN to avoid override
  • Loading branch information
catenacyber authored Nov 22, 2021
1 parent 30d3d0a commit ec92af7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/opensk/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@

FUZZ_TARGET_OUTPUT_DIR=fuzz/target/x86_64-unknown-linux-gnu/release

# do not use override toolchain
# cf https://rust-lang.github.io/rustup/overrides.html
export RUSTUP_TOOLCHAIN=nightly

build_and_copy() {
pushd "$1"
cargo +nightly fuzz build --release --debug-assertions
cargo fuzz build --release --debug-assertions
for f in fuzz/fuzz_targets/*.rs
do
cp ${FUZZ_TARGET_OUTPUT_DIR}/$(basename ${f%.*}) $OUT/
Expand Down

0 comments on commit ec92af7

Please sign in to comment.