D5458: fuzz: improve makefile per feedback from some folks at work

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Dec 20 00:31:16 UTC 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5458

AFFECTED FILES
  contrib/fuzz/Makefile

CHANGE DETAILS

diff --git a/contrib/fuzz/Makefile b/contrib/fuzz/Makefile
--- a/contrib/fuzz/Makefile
+++ b/contrib/fuzz/Makefile
@@ -72,7 +72,7 @@
 
 # TODO use the $OUT env var instead of hardcoding /out
 /out/sanpy/bin/python:
-	cd /Python-2.7.15/ ; ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS
+	cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LINKCC="$($CXX)" LDFLAGS="$(CXXFLAGS)"
 	cd /Python-2.7.15/ ; grep -v HAVE_GETC_UNLOCKED < pyconfig.h > tmp && mv tmp pyconfig.h
 	cd /Python-2.7.15/ ; ASAN_OPTIONS=detect_leaks=0 make && make install
 



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list