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 Feb 22, 2019
1 parent 07d594b commit 16635e0
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 16635e0

Please sign in to comment.