Show More
@@ -11,6 +11,7 b' CXX = clang++' | |||||
11 | LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o |
|
11 | LIB_FUZZING_ENGINE ?= standalone_fuzz_target_runner.o | |
12 |
|
12 | |||
13 | PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config |
|
13 | PYTHON_CONFIG ?= $$OUT/sanpy/bin/python-config | |
|
14 | PYTHON_CONFIG_FLAGS ?= --ldflags | |||
14 |
|
15 | |||
15 | CXXFLAGS += -Wno-deprecated-register |
|
16 | CXXFLAGS += -Wno-deprecated-register | |
16 |
|
17 | |||
@@ -67,7 +68,7 b' dirs_fuzzer: dirs.cc pyutil.o $(PARSERS_' | |||||
67 | -Wno-register -Wno-macro-redefined \ |
|
68 | -Wno-register -Wno-macro-redefined \ | |
68 | -I../../mercurial dirs.cc \ |
|
69 | -I../../mercurial dirs.cc \ | |
69 | pyutil.o $(PARSERS_OBJS) \ |
|
70 | pyutil.o $(PARSERS_OBJS) \ | |
70 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
71 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
71 | -o $$OUT/dirs_fuzzer |
|
72 | -o $$OUT/dirs_fuzzer | |
72 |
|
73 | |||
73 | fncache_fuzzer: fncache.cc |
|
74 | fncache_fuzzer: fncache.cc | |
@@ -75,7 +76,7 b' fncache_fuzzer: fncache.cc' | |||||
75 | -Wno-register -Wno-macro-redefined \ |
|
76 | -Wno-register -Wno-macro-redefined \ | |
76 | -I../../mercurial fncache.cc \ |
|
77 | -I../../mercurial fncache.cc \ | |
77 | pyutil.o $(PARSERS_OBJS) \ |
|
78 | pyutil.o $(PARSERS_OBJS) \ | |
78 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
79 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
79 | -o $$OUT/fncache_fuzzer |
|
80 | -o $$OUT/fncache_fuzzer | |
80 |
|
81 | |||
81 | jsonescapeu8fast_fuzzer: jsonescapeu8fast.cc pyutil.o $(PARSERS_OBJS) |
|
82 | jsonescapeu8fast_fuzzer: jsonescapeu8fast.cc pyutil.o $(PARSERS_OBJS) | |
@@ -83,7 +84,7 b' jsonescapeu8fast_fuzzer: jsonescapeu8fas' | |||||
83 | -Wno-register -Wno-macro-redefined \ |
|
84 | -Wno-register -Wno-macro-redefined \ | |
84 | -I../../mercurial jsonescapeu8fast.cc \ |
|
85 | -I../../mercurial jsonescapeu8fast.cc \ | |
85 | pyutil.o $(PARSERS_OBJS) \ |
|
86 | pyutil.o $(PARSERS_OBJS) \ | |
86 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
87 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
87 | -o $$OUT/jsonescapeu8fast_fuzzer |
|
88 | -o $$OUT/jsonescapeu8fast_fuzzer | |
88 |
|
89 | |||
89 | manifest_fuzzer: manifest.cc pyutil.o $(PARSERS_OBJS) $$OUT/manifest_fuzzer_seed_corpus.zip |
|
90 | manifest_fuzzer: manifest.cc pyutil.o $(PARSERS_OBJS) $$OUT/manifest_fuzzer_seed_corpus.zip | |
@@ -91,7 +92,7 b' manifest_fuzzer: manifest.cc pyutil.o $(' | |||||
91 | -Wno-register -Wno-macro-redefined \ |
|
92 | -Wno-register -Wno-macro-redefined \ | |
92 | -I../../mercurial manifest.cc \ |
|
93 | -I../../mercurial manifest.cc \ | |
93 | pyutil.o $(PARSERS_OBJS) \ |
|
94 | pyutil.o $(PARSERS_OBJS) \ | |
94 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
95 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
95 | -o $$OUT/manifest_fuzzer |
|
96 | -o $$OUT/manifest_fuzzer | |
96 |
|
97 | |||
97 | revlog_fuzzer: revlog.cc pyutil.o $(PARSERS_OBJS) $$OUT/revlog_fuzzer_seed_corpus.zip |
|
98 | revlog_fuzzer: revlog.cc pyutil.o $(PARSERS_OBJS) $$OUT/revlog_fuzzer_seed_corpus.zip | |
@@ -99,7 +100,7 b' revlog_fuzzer: revlog.cc pyutil.o $(PARS' | |||||
99 | -Wno-register -Wno-macro-redefined \ |
|
100 | -Wno-register -Wno-macro-redefined \ | |
100 | -I../../mercurial revlog.cc \ |
|
101 | -I../../mercurial revlog.cc \ | |
101 | pyutil.o $(PARSERS_OBJS) \ |
|
102 | pyutil.o $(PARSERS_OBJS) \ | |
102 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
103 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
103 | -o $$OUT/revlog_fuzzer |
|
104 | -o $$OUT/revlog_fuzzer | |
104 |
|
105 | |||
105 | dirstate_fuzzer: dirstate.cc pyutil.o $(PARSERS_OBJS) $$OUT/dirstate_fuzzer_seed_corpus.zip |
|
106 | dirstate_fuzzer: dirstate.cc pyutil.o $(PARSERS_OBJS) $$OUT/dirstate_fuzzer_seed_corpus.zip | |
@@ -107,7 +108,7 b' dirstate_fuzzer: dirstate.cc pyutil.o $(' | |||||
107 | -Wno-register -Wno-macro-redefined \ |
|
108 | -Wno-register -Wno-macro-redefined \ | |
108 | -I../../mercurial dirstate.cc \ |
|
109 | -I../../mercurial dirstate.cc \ | |
109 | pyutil.o $(PARSERS_OBJS) \ |
|
110 | pyutil.o $(PARSERS_OBJS) \ | |
110 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
111 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
111 | -o $$OUT/dirstate_fuzzer |
|
112 | -o $$OUT/dirstate_fuzzer | |
112 |
|
113 | |||
113 | fm1readmarkers_fuzzer: fm1readmarkers.cc pyutil.o $(PARSERS_OBJS) $$OUT/fm1readmarkers_fuzzer_seed_corpus.zip |
|
114 | fm1readmarkers_fuzzer: fm1readmarkers.cc pyutil.o $(PARSERS_OBJS) $$OUT/fm1readmarkers_fuzzer_seed_corpus.zip | |
@@ -115,7 +116,7 b' fm1readmarkers_fuzzer: fm1readmarkers.cc' | |||||
115 | -Wno-register -Wno-macro-redefined \ |
|
116 | -Wno-register -Wno-macro-redefined \ | |
116 | -I../../mercurial fm1readmarkers.cc \ |
|
117 | -I../../mercurial fm1readmarkers.cc \ | |
117 | pyutil.o $(PARSERS_OBJS) \ |
|
118 | pyutil.o $(PARSERS_OBJS) \ | |
118 |
$(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) |
|
119 | $(LIB_FUZZING_ENGINE) `$(PYTHON_CONFIG) $(PYTHON_CONFIG_FLAGS)` \ | |
119 | -o $$OUT/fm1readmarkers_fuzzer |
|
120 | -o $$OUT/fm1readmarkers_fuzzer | |
120 |
|
121 | |||
121 | clean: |
|
122 | clean: |
General Comments 0
You need to be logged in to leave comments.
Login now