Skip to content

Commit

Permalink
Fix passing extra RUSTFLAGS
Browse files Browse the repository at this point in the history
When the fix for rust-fuzz#141 is in effect if you pass extra RUSTFLAGS there is
no space separating them and the command line breaks. Fix that by adding
a space at the end of those flags, just like it's done in the common
string.
  • Loading branch information
pedrocr committed Feb 22, 2019
1 parent 16635e0 commit 94c1986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/cargo-afl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ where
// 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.
rustflags.push_str("-Clink-arg=-fuse-ld=gold");
rustdocflags.push_str("-Clink-arg=-fuse-ld=gold");
rustflags.push_str("-Clink-arg=-fuse-ld=gold ");
rustdocflags.push_str("-Clink-arg=-fuse-ld=gold ");
}

// add user provided flags
Expand Down

0 comments on commit 94c1986

Please sign in to comment.