From 405b5f316acaef0152f93122db7f0b257a0a6fce Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 18 May 2008 11:46:51 +0000 Subject: GHOP #217: add support for compiling Python with coverage checking enabled. --- Makefile.pre.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile.pre.in') diff --git a/Makefile.pre.in b/Makefile.pre.in index 80043c24ad..b692a4661e 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -375,6 +375,12 @@ run_profile_task: build_all_use_profile: $(MAKE) all CFLAGS="$(CFLAGS) -fprofile-use" +coverage: + @echo "Building with support for coverage checking:" + $(MAKE) clean + $(MAKE) all CFLAGS="$(CFLAGS) -O0 -pg -fprofile-arcs -ftest-coverage" LIBS="$(LIBS) -lgcov" + + # Build the interpreter $(BUILDPYTHON): Modules/python.o $(LIBRARY) $(LDLIBRARY) $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ -- cgit v1.2.1