comparison contrib/fuzz/Makefile @ 41001:c83ce53959ca

fuzz: improve makefile per feedback from some folks at work This is a *ton* better. Once this lands, I can remove a nasty kludge from the oss-fuzz build.sh. Bonus: this fixes the coverage build. Differential Revision: https://phab.mercurial-scm.org/D5458
author Augie Fackler <augie@google.com>
date Wed, 19 Dec 2018 19:20:21 -0500
parents 0fecf70fa8d4
children 1e51dc85ce12
comparison
equal deleted inserted replaced
41000:b6c610bf567e 41001:c83ce53959ca
70 fuzz-xdiffi.o fuzz-xprepare.o fuzz-xutils.o fuzzutil-oss-fuzz.o \ 70 fuzz-xdiffi.o fuzz-xprepare.o fuzz-xutils.o fuzzutil-oss-fuzz.o \
71 -lFuzzingEngine -o $$OUT/xdiff_fuzzer 71 -lFuzzingEngine -o $$OUT/xdiff_fuzzer
72 72
73 # TODO use the $OUT env var instead of hardcoding /out 73 # TODO use the $OUT env var instead of hardcoding /out
74 /out/sanpy/bin/python: 74 /out/sanpy/bin/python:
75 cd /Python-2.7.15/ ; ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS 75 cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LINKCC="$($CXX)" LDFLAGS="$(CXXFLAGS)"
76 cd /Python-2.7.15/ ; grep -v HAVE_GETC_UNLOCKED < pyconfig.h > tmp && mv tmp pyconfig.h 76 cd /Python-2.7.15/ ; grep -v HAVE_GETC_UNLOCKED < pyconfig.h > tmp && mv tmp pyconfig.h
77 cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 make && make install 77 cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 make && make install
78 78
79 sanpy: /out/sanpy/bin/python 79 sanpy: /out/sanpy/bin/python
80 80