1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

fuzz: control debuglevel from Makefile

and make the compilation faster
This commit is contained in:
Yann Collet
2024-02-08 16:14:14 -08:00
parent 54107e263f
commit 695d154cac
2 changed files with 2 additions and 1 deletions

View File

@ -257,7 +257,7 @@ corpora: $(patsubst %,corpora/%,$(FUZZ_TARGETS))
seedcorpora: $(patsubst %,corpora/%_seed_corpus.zip,$(FUZZ_TARGETS)) seedcorpora: $(patsubst %,corpora/%_seed_corpus.zip,$(FUZZ_TARGETS))
regressiontest: corpora 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 $(PYTHON) ./fuzz.py regression all
clean: clean:

View File

@ -492,6 +492,7 @@ def build(args):
subprocess.check_call(clean_cmd) subprocess.check_call(clean_cmd)
build_cmd = [ build_cmd = [
'make', 'make',
'-j',
cc_str, cc_str,
cxx_str, cxx_str,
cppflags_str, cppflags_str,