Skip to content

Commit 18eedfa

Browse files
committed
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 #6842)
1 parent 7ca86fe commit 18eedfa

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Make_cyg_ming.mak

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ DEBUG=no
3838
# set to yes to create a mapfile
3939
#MAP=yes
4040

41+
# set to yes to measure code coverage
42+
COVERAGE=no
43+
4144
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
4245
OPTIMIZE=MAXSPEED
4346

@@ -700,6 +703,11 @@ CFLAGS += -O2
700703
LFLAGS += -s
701704
endif
702705

706+
ifeq ($(COVERAGE),yes)
707+
CFLAGS += --coverage
708+
LFLAGS += --coverage
709+
endif
710+
703711
LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
704712
GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o
705713
CUIOBJ = $(OUTDIR)/iscygpty.o
@@ -938,6 +946,9 @@ EXELFLAGS += -municode
938946
ifneq ($(DEBUG),yes)
939947
EXELFLAGS += -s
940948
endif
949+
ifeq ($(COVERAGE),yes)
950+
EXELFLAGS += --coverage
951+
endif
941952
DEFINES += $(DEF_GUI) -DVIMDLL
942953
OBJ += $(GUIOBJ) $(CUIOBJ)
943954
OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,8 @@ static char *(features[]) =
754754

755755
static int included_patches[] =
756756
{ /* Add new patch number below this line */
757+
/**/
758+
1583,
757759
/**/
758760
1582,
759761
/**/

0 commit comments

Comments
 (0)