Skip to content

Commit

Permalink
Fix broken OS detection
Browse files Browse the repository at this point in the history
The rust-fuzz#141 workaround was actually fully disabled because the OS condition
was wrong. This fixes the workaround.
  • Loading branch information
pedrocr committed Oct 6, 2019
1 parent dfde15b commit e41e471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo-afl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ where
common::afl_llvm_rt_dir().display()
);

if cfg!(linux) {
if cfg!(target_os = "linux") {
// work around https://github.com/rust-fuzz/afl.rs/issues/141 /
// https://github.com/rust-lang/rust/issues/53945, can be removed once
// those are fixed.
Expand Down

0 comments on commit e41e471

Please sign in to comment.