Set cfg=fuzzing when building fuzz crate in CI
authorMatt Corallo <git@bluematt.me>
Mon, 5 Jul 2021 18:13:16 +0000 (18:13 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 10 Aug 2021 22:26:31 +0000 (22:26 +0000)
We will likely drop the fuzztarget feature soon, and should thus be
setting cfg=fuzzing explicitly anyway.

ci/check-compiles.sh

index 2bc31007b6b7463bfe9df5bd46d4b76bcc36901f..193c2b4ef1fee74d6dbbdfdaee2c09bb86cc9197 100755 (executable)
@@ -5,5 +5,5 @@ echo Testing $(git log -1 --oneline)
 cargo check
 cargo doc
 cargo doc --document-private-items
-cd fuzz && cargo check --features=stdin_fuzz
+cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo check --features=stdin_fuzz
 cd ../lightning && cargo check --no-default-features --features=no-std