CMake: Add ENABLE_FUZZING and "afl" target

This commit is contained in:
Max Bruckner
2017-02-18 12:52:16 +01:00
parent 44512f643e
commit 0e0cd5bae5
17 changed files with 435 additions and 1 deletions
Executable
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
mkdir -p afl-build || exit 1
cd afl-build || exit 1
#cleanup
rm -r -- *
CC=afl-gcc cmake ../.. -DENABLE_FUZZING=On -DENABLE_SANITIZERS=On -DBUILD_SHARED_LIBS=Off
make afl