Patch 8.2.1583
Problem: MS-Windows: cannot easily measure code coverage.
Solution: Add the COVERAGE option. (Ken Takata, closes #6842)
Files: src/Make_cyg_ming.mak
*** ../vim-8.2.1582/src/Make_cyg_ming.mak 2020-08-13 22:47:20.373992741 +0200
--- src/Make_cyg_ming.mak 2020-09-03 19:37:16.092471568 +0200
***************
*** 38,43 ****
--- 38,46 ----
# 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,705 ****
--- 703,713 ----
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,943 ****
--- 946,954 ----
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)
*** ../vim-8.2.1582/src/version.c 2020-09-03 19:25:08.026072635 +0200
--- src/version.c 2020-09-03 19:38:37.924257298 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1583,
/**/
--
ARTHUR: Well, I can't just call you `Man'.
DENNIS: Well, you could say `Dennis'.
ARTHUR: Well, I didn't know you were called `Dennis.'
DENNIS: Well, you didn't bother to find out, did you?
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///