]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fuzz: control debuglevel from Makefile
authorYann Collet <yann.collet.73@gmail.com>
Fri, 9 Feb 2024 00:14:14 +0000 (16:14 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 9 Feb 2024 00:23:52 +0000 (16:23 -0800)
and make the compilation faster

tests/fuzz/Makefile
tests/fuzz/fuzz.py

index 525e396bca433c20596a62639e015db71e709f09..554bd10d561a7bba0d71a672f2f5ec47e7d66e72 100644 (file)
@@ -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:
index 058fca8137bb3a578eda0e7a2a1490ec59b1d811..c489b8fa64642e5c42b07894a807bf3d98ea9c79 100755 (executable)
@@ -492,6 +492,7 @@ def build(args):
     subprocess.check_call(clean_cmd)
     build_cmd = [
         'make',
+        '-j',
         cc_str,
         cxx_str,
         cppflags_str,