Show More
@@ -10,6 +10,15 b' CXX ?= clang++' | |||||
10 | # OSS-Fuzz will define its own value for LIB_FUZZING_ENGINE. |
|
10 | # OSS-Fuzz will define its own value for LIB_FUZZING_ENGINE. | |
11 | LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o |
|
11 | LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o | |
12 |
|
12 | |||
|
13 | # Default to Python 3. | |||
|
14 | # | |||
|
15 | # Windows ships Python 3 as `python.exe`, which may not be on PATH. py.exe is. | |||
|
16 | ifeq ($(OS),Windows_NT) | |||
|
17 | PYTHON?=py -3 | |||
|
18 | else | |||
|
19 | PYTHON?=python3 | |||
|
20 | endif | |||
|
21 | ||||
13 | PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config |
|
22 | PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config | |
14 | PYTHON_CONFIG_FLAGS ?= --ldflags --embed |
|
23 | PYTHON_CONFIG_FLAGS ?= --ldflags --embed | |
15 |
|
24 | |||
@@ -20,7 +29,7 b' all: standalone_fuzz_target_runner.o oss' | |||||
20 | standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc |
|
29 | standalone_fuzz_target_runner.o: standalone_fuzz_target_runner.cc | |
21 |
|
30 | |||
22 | $$OUT/%_fuzzer_seed_corpus.zip: %_corpus.py |
|
31 | $$OUT/%_fuzzer_seed_corpus.zip: %_corpus.py | |
23 | python $< $@ |
|
32 | $(PYTHON) $< $@ | |
24 |
|
33 | |||
25 | pyutil.o: pyutil.cc pyutil.h |
|
34 | pyutil.o: pyutil.cc pyutil.h | |
26 | $(CXX) $(CXXFLAGS) -g -O1 \ |
|
35 | $(CXX) $(CXXFLAGS) -g -O1 \ |
General Comments 0
You need to be logged in to leave comments.
Login now