diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-03 19:50:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-03 19:50:05 +0200 |
commit | 18eedfa40b45b1de955d61417e9918ef7d6e83f9 (patch) | |
tree | 67a316d23221009369307fd0a2593fd587455ce6 | |
parent | 7ca86fe8dc584141d6a73408acf3e90d8c88c7b9 (diff) | |
download | vim-git-18eedfa40b45b1de955d61417e9918ef7d6e83f9.tar.gz |
patch 8.2.1583: MS-Windows: cannot easily measure code coveragev8.2.1583
Problem: MS-Windows: cannot easily measure code coverage.
Solution: Add the COVERAGE option. (Ken Takata, closes #6842)
-rw-r--r-- | src/Make_cyg_ming.mak | 11 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak index db0513f43..5fc08331d 100644 --- 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) diff --git a/src/version.c b/src/version.c index 9c5f37097..de956a642 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1583, +/**/ 1582, /**/ 1581, |