Patchwork D5363: fuzz: grep away HAVE_GETC_UNLOCKED in pyconfig.h to avoid msan badness

login
register
mail settings
Submitter phabricator
Date Dec. 4, 2018, 12:47 p.m.
Message ID <a282ee01ba343f6b5f6692cff8b48aff@localhost.localdomain>
Download mbox | patch
Permalink /patch/36946/
State Not Applicable
Headers show

Comments

phabricator - Dec. 4, 2018, 12:47 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG54554ed8d9bb: fuzz: grep away HAVE_GETC_UNLOCKED in pyconfig.h to avoid msan badness (authored by durin42, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D5363?vs=12688&id=12693#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5363?vs=12688&id=12693

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

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,9 @@ 
 
 # 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 && ASAN_OPTIONS=detect_leaks=0 make && make install
+	cd /Python-2.7.15/ ; ./configure --without-pymalloc --prefix=$$OUT/sanpy CFLAGS="$(CFLAGS)" LDFLAGS=$$PYLDFLAGS
+	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
 
 sanpy: /out/sanpy/bin/python