nixpkgs: afl - fix llvm-mode
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
047e77274c
commit
7200556e5d
1 changed files with 11 additions and 1 deletions
|
@ -46,9 +46,19 @@ stdenv.mkDerivation rec {
|
|||
# bug in afl which causes it to fail to find `afl-qemu-trace`
|
||||
# relative to `afl-fuzz` or `afl-showmap`, so we instead set
|
||||
# $AFL_PATH as a workaround, which allows it to be found.
|
||||
for x in `ls $out/bin/afl-*`; do
|
||||
for x in `ls $out/bin/afl-* | grep -v afl-clang-fast`; do
|
||||
wrapProgram $x --prefix AFL_PATH : "$out/bin"
|
||||
done
|
||||
# Wrap afl-clang-fast(++) with a *different* AFL_PATH, because it
|
||||
# has totally different semantics in that case(?) - and also set a
|
||||
# proper AFL_CC and AFL_CXX so we don't pick up the wrong one out
|
||||
# of $PATH.
|
||||
for x in $out/bin/afl-clang-fast $out/bin/afl-clang-fast++; do
|
||||
wrapProgram $x \
|
||||
--prefix AFL_PATH : "$out/lib/afl" \
|
||||
--prefix AFL_CC : "${clang}/bin/clang" \
|
||||
--prefix AFL_CXX : "${clang}/bin/clang++"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue