Mercurial > vim
changeset 22067:59984404e520 v8.2.1583
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Commit: https://github.com/vim/vim/commit/18eedfa40b45b1de955d61417e9918ef7d6e83f9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 3 19:50:05 2020 +0200
patch 8.2.1583: MS-Windows: cannot easily measure code coverage
Problem: MS-Windows: cannot easily measure code coverage.
Solution: Add the COVERAGE option. (Ken Takata, closes https://github.com/vim/vim/issues/6842)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Sep 2020 20:00:03 +0200 |
parents | 5f015f7d330c |
children | 79aa6e93bcab |
files | src/Make_cyg_ming.mak src/version.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Make_cyg_ming.mak +++ b/src/Make_cyg_ming.mak @@ -38,6 +38,9 @@ DEBUG=no # set to yes to create a mapfile #MAP=yes +# set to yes to measure code coverage +COVERAGE=no + # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization OPTIMIZE=MAXSPEED @@ -700,6 +703,11 @@ CFLAGS += -O2 LFLAGS += -s endif +ifeq ($(COVERAGE),yes) +CFLAGS += --coverage +LFLAGS += --coverage +endif + LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o CUIOBJ = $(OUTDIR)/iscygpty.o @@ -938,6 +946,9 @@ EXELFLAGS += -municode ifneq ($(DEBUG),yes) EXELFLAGS += -s endif + ifeq ($(COVERAGE),yes) +EXELFLAGS += --coverage + endif DEFINES += $(DEF_GUI) -DVIMDLL OBJ += $(GUIOBJ) $(CUIOBJ) OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)