Skip to content

Commit

Permalink
fuzz: control debuglevel from Makefile
Browse files Browse the repository at this point in the history
and make the compilation faster
  • Loading branch information
Cyan4973 committed Feb 9, 2024
1 parent 54107e2 commit 695d154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fuzz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ corpora: $(patsubst %,corpora/%,$(FUZZ_TARGETS))
seedcorpora: $(patsubst %,corpora/%_seed_corpus.zip,$(FUZZ_TARGETS))

regressiontest: corpora
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ./fuzz.py build all
CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ./fuzz.py build all --debug=$(DEBUGLEVEL)
$(PYTHON) ./fuzz.py regression all

clean:
Expand Down
1 change: 1 addition & 0 deletions tests/fuzz/fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ def build(args):
subprocess.check_call(clean_cmd)
build_cmd = [
'make',
'-j',
cc_str,
cxx_str,
cppflags_str,
Expand Down

0 comments on commit 695d154

Please sign in to comment.