From: Yann Collet Date: Fri, 9 Feb 2024 00:14:14 +0000 (-0800) Subject: fuzz: control debuglevel from Makefile X-Git-Tag: v1.5.6^2~67^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695d154cac251c4ae2e2a438af21f0455a4c4149;p=thirdparty%2Fzstd.git fuzz: control debuglevel from Makefile and make the compilation faster --- diff --git a/tests/fuzz/Makefile b/tests/fuzz/Makefile index 525e396bc..554bd10d5 100644 --- a/tests/fuzz/Makefile +++ b/tests/fuzz/Makefile @@ -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: diff --git a/tests/fuzz/fuzz.py b/tests/fuzz/fuzz.py index 058fca813..c489b8fa6 100755 --- a/tests/fuzz/fuzz.py +++ b/tests/fuzz/fuzz.py @@ -492,6 +492,7 @@ def build(args): subprocess.check_call(clean_cmd) build_cmd = [ 'make', + '-j', cc_str, cxx_str, cppflags_str,