Skip to content

Commit 9e7330a

Browse files
committed
Apply --cfg=fuzzing when fuzzing, as required by new secp256k1
1 parent 9d955f7 commit 9e7330a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
sudo apt-get update
203203
sudo apt-get -y install build-essential binutils-dev libunwind-dev
204204
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
205-
run: cd fuzz && cargo test --verbose --color always
205+
run: cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose --color always
206206
- name: Run fuzzers
207207
run: cd fuzz && ./ci-fuzz.sh
208208

fuzz/ci-fuzz.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ for TARGET in src/bin/*.rs; do
2727
HFUZZ_RUN_ARGS="$HFUZZ_RUN_ARGS -N1000000"
2828
fi
2929
export HFUZZ_RUN_ARGS
30+
export RUSTFLAGS="--cfg=fuzzing"
3031
HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz" cargo --color always hfuzz run $FILE
3132
if [ -f hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT ]; then
3233
cat hfuzz_workspace/$FILE/HONGGFUZZ.REPORT.TXT

0 commit comments

Comments
 (0)