diff options
author | Georg Brandl <georg@python.org> | 2008-05-18 11:46:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-18 11:46:51 (GMT) |
commit | 405b5f316acaef0152f93122db7f0b257a0a6fce (patch) | |
tree | 04e7772b454d99d6ea7afc5105eccbaf27bf71ac /Makefile.pre.in | |
parent | 0bb0299ad8c538eb6d24644b8305c45c110d6c4f (diff) | |
download | cpython-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.in | 6 |
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 $@ \ |