This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
set -e
4
+ cd " $( dirname " $0 " ) /.."
5
+
6
+ source ./ci/rust-version.sh nightly
4
7
5
8
usage () {
6
9
exitcode=0
@@ -22,7 +25,10 @@ if [[ -z $2 ]]; then
22
25
usage " No runtime provided"
23
26
fi
24
27
25
- HFUZZ_RUN_ARGS=" --run_time $run_time --exit_upon_crash" cargo hfuzz run $fuzz_target
28
+ # Temporary workaround using RUSTFLAGS and rust nightly due to:
29
+ # https://github.com/rust-fuzz/honggfuzz-rs/issues/61
30
+ # Once the issue is resolved, remove the RUSTFLAGS and nightly usage everywhere.
31
+ RUSTFLAGS=" -Znew-llvm-pass-manager=no" HFUZZ_RUN_ARGS=" --run_time $run_time --exit_upon_crash" cargo +nightly-2022-02-24 hfuzz run $fuzz_target
26
32
27
33
# Until https://github.com/rust-fuzz/honggfuzz-rs/issues/16 is resolved,
28
34
# hfuzz does not return an error code on crash, so look for a crash artifact
Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version"
49
49
cd " $( dirname " ${BASH_SOURCE[0]} " ) "
50
50
case $1 in
51
51
stable)
52
- rustup_install " $rust_stable "
53
- ;;
54
- # nightly)
55
- # rustup_install "$rust_nightly"
56
- # ;;
52
+ rustup_install " $rust_stable "
53
+ ;;
54
+ nightly)
55
+ rustup_install " $rust_nightly "
56
+ ;;
57
57
all)
58
- rustup_install " $rust_stable "
59
- rustup_install " $rust_nightly "
58
+ rustup_install " $rust_stable "
59
+ rustup_install " $rust_nightly "
60
60
;;
61
61
* )
62
62
echo " $0 : Note: ignoring unknown argument: $1 " >&2
You can’t perform that action at this time.
0 commit comments