contrib/fuzz/Makefile
changeset 40810 0fecf70fa8d4
parent 40809 177b47ce0375
child 41001 c83ce53959ca
equal deleted inserted replaced
40809:177b47ce0375 40810:0fecf70fa8d4
    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 && ASAN_OPTIONS=detect_leaks=0 make && make install
    75 	cd /Python-2.7.15/ ; ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS
       
    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
    76 
    78 
    77 sanpy: /out/sanpy/bin/python
    79 sanpy: /out/sanpy/bin/python
    78 
    80 
    79 manifest.o: sanpy ../../mercurial/cext/manifest.c
    81 manifest.o: sanpy ../../mercurial/cext/manifest.c
    80 	$(CC) $(CFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \
    82 	$(CC) $(CFLAGS) `$$OUT/sanpy/bin/python-config --cflags` \