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

login
register
mail settings
Submitter phabricator
Date Dec. 20, 2018, 12:42 a.m.
Message ID <4b7862beb11fd352ea074476644e726f@localhost.localdomain>
Download mbox | patch
Permalink /patch/37256/
State Not Applicable
Headers show

Comments

phabricator - Dec. 20, 2018, 12:42 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc83ce53959ca: fuzz: improve makefile per feedback from some folks at work (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5458?vs=12906&id=12907

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

AFFECTED FILES
  contrib/fuzz/Makefile

CHANGE DETAILS




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

Patch

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