mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
show correct python version and readme name
This commit is contained in:
2
Makefile
2
Makefile
@ -106,7 +106,7 @@ COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types
|
|||||||
|
|
||||||
ifeq "$(shell echo '\#include <Python.h>@int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test -I$(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
|
ifeq "$(shell echo '\#include <Python.h>@int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test -I$(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
|
||||||
PYTHON_OK=1
|
PYTHON_OK=1
|
||||||
PYFLAGS=-DUSE_PYTHON -I$(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB)
|
PYFLAGS=-DUSE_PYTHON -I$(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) -DPYTHON_VERSION=\"$(PYTHON_VERSION)\"
|
||||||
else
|
else
|
||||||
PYTHON_OK=0
|
PYTHON_OK=0
|
||||||
PYFLAGS=
|
PYFLAGS=
|
||||||
|
@ -84,13 +84,6 @@ static u8* get_libradamsa_path(u8* own_loc) {
|
|||||||
|
|
||||||
static void usage(u8* argv0) {
|
static void usage(u8* argv0) {
|
||||||
|
|
||||||
#ifdef USE_PYTHON
|
|
||||||
#define PHYTON_SUPPORT \
|
|
||||||
"Compiled with Python 2.7 module support, see docs/python_mutators.txt\n"
|
|
||||||
#else
|
|
||||||
#define PHYTON_SUPPORT ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SAYF(
|
SAYF(
|
||||||
"\n%s [ options ] -- /path/to/fuzzed_app [ ... ]\n\n"
|
"\n%s [ options ] -- /path/to/fuzzed_app [ ... ]\n\n"
|
||||||
|
|
||||||
@ -146,13 +139,15 @@ static void usage(u8* argv0) {
|
|||||||
"file\n"
|
"file\n"
|
||||||
" -C - crash exploration mode (the peruvian rabbit thing)\n"
|
" -C - crash exploration mode (the peruvian rabbit thing)\n"
|
||||||
" -e ext - File extension for the temporarily generated test "
|
" -e ext - File extension for the temporarily generated test "
|
||||||
"case\n\n"
|
"case\n\n",
|
||||||
|
|
||||||
PHYTON_SUPPORT
|
argv0, EXEC_TIMEOUT, MEM_LIMIT);
|
||||||
|
|
||||||
"For additional tips, please consult %s/README\n\n",
|
#ifdef USE_PYTHON
|
||||||
|
SAYF("Compiled with Python %s module support, see docs/python_mutators.txt\n", (char*)PYTHON_VERSION);
|
||||||
|
#endif
|
||||||
|
|
||||||
argv0, EXEC_TIMEOUT, MEM_LIMIT, doc_path);
|
SAYF("For additional information please consult %s/README.md\n\n", doc_path);
|
||||||
|
|
||||||
exit(1);
|
exit(1);
|
||||||
#undef PHYTON_SUPPORT
|
#undef PHYTON_SUPPORT
|
||||||
|
Reference in New Issue
Block a user