mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
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)
This commit is contained in:
parent
7ca86fe8dc
commit
18eedfa40b
@ -38,6 +38,9 @@ DEBUG=no
|
|||||||
# set to yes to create a mapfile
|
# set to yes to create a mapfile
|
||||||
#MAP=yes
|
#MAP=yes
|
||||||
|
|
||||||
|
# set to yes to measure code coverage
|
||||||
|
COVERAGE=no
|
||||||
|
|
||||||
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
|
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
|
||||||
OPTIMIZE=MAXSPEED
|
OPTIMIZE=MAXSPEED
|
||||||
|
|
||||||
@ -700,6 +703,11 @@ CFLAGS += -O2
|
|||||||
LFLAGS += -s
|
LFLAGS += -s
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(COVERAGE),yes)
|
||||||
|
CFLAGS += --coverage
|
||||||
|
LFLAGS += --coverage
|
||||||
|
endif
|
||||||
|
|
||||||
LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
|
LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 -lversion
|
||||||
GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o
|
GUIOBJ = $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o
|
||||||
CUIOBJ = $(OUTDIR)/iscygpty.o
|
CUIOBJ = $(OUTDIR)/iscygpty.o
|
||||||
@ -938,6 +946,9 @@ EXELFLAGS += -municode
|
|||||||
ifneq ($(DEBUG),yes)
|
ifneq ($(DEBUG),yes)
|
||||||
EXELFLAGS += -s
|
EXELFLAGS += -s
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(COVERAGE),yes)
|
||||||
|
EXELFLAGS += --coverage
|
||||||
|
endif
|
||||||
DEFINES += $(DEF_GUI) -DVIMDLL
|
DEFINES += $(DEF_GUI) -DVIMDLL
|
||||||
OBJ += $(GUIOBJ) $(CUIOBJ)
|
OBJ += $(GUIOBJ) $(CUIOBJ)
|
||||||
OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
|
OUTDIR = dobj$(DEBUG_SUFFIX)$(MZSCHEME_SUFFIX)$(ARCH)
|
||||||
|
@ -754,6 +754,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1583,
|
||||||
/**/
|
/**/
|
||||||
1582,
|
1582,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user