summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-18 11:46:51 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-18 11:46:51 (GMT)
commit405b5f316acaef0152f93122db7f0b257a0a6fce (patch)
tree04e7772b454d99d6ea7afc5105eccbaf27bf71ac /Makefile.pre.in
parent0bb0299ad8c538eb6d24644b8305c45c110d6c4f (diff)
downloadcpython-405b5f316acaef0152f93122db7f0b257a0a6fce.zip
cpython-405b5f316acaef0152f93122db7f0b257a0a6fce.tar.gz
cpython-405b5f316acaef0152f93122db7f0b257a0a6fce.tar.bz2
GHOP #217: add support for compiling Python with coverage checking enabled.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 80043c2..b692a46 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 $@ \