Skip to content

Commit e41e471

Browse files
committed
Fix broken OS detection
The rust-fuzz#141 workaround was actually fully disabled because the OS condition was wrong. This fixes the workaround.
1 parent dfde15b commit e41e471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo-afl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ where
190190
common::afl_llvm_rt_dir().display()
191191
);
192192

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

0 commit comments

Comments
 (0)