You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per issue rust-fuzz#142, `cargo afl test` and other commands that would run
doctests would encounter issues with linkage. This commit changes `cargo
afl` to set RUSTDOCFLAGS so rustdoc will be able to find the required
libs. Further options are passed to ensure doctests are built and run in
as similar a fashion to other code. This avoids other gotchas like cfg
fuzzing being set for normal builds, but not for doctests.
Per issue #142, `cargo afl test` and other commands that would run
doctests would encounter issues with linkage. This commit changes `cargo
afl` to set RUSTDOCFLAGS so rustdoc will be able to find the required
libs. Further options are passed to ensure doctests are built and run in
as similar a fashion to other code. This avoids other gotchas like cfg
fuzzing being set for normal builds, but not for doctests.
When running
cargo afl test
doctests result in linking errors. Steps to reproduce:cc
failed #141)export RUSTFLAGS=-Clink-arg=-fuse-ld=gold
cargo new --lib afl_rs_doctest
cargo afl test
Results in:
The text was updated successfully, but these errors were encountered: