changeset 14820:8ff32a34f25e v8.1.0422

patch 8.1.0422: cannot create map file with MinGW commit https://github.com/vim/vim/commit/4ff4290de1a9c0fddc02b3fc84f5947bb09db06c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 21 14:43:10 2018 +0200 patch 8.1.0422: cannot create map file with MinGW Problem: Cannot create map file with MinGW. Solution: Add support for $MAP. (Ken Takata, closes https://github.com/vim/vim/issues/3460)
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Sep 2018 14:45:07 +0200
parents b6aa6c36c7bd
children edc3d7023442
files src/Make_cyg_ming.mak src/version.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -35,6 +35,9 @@ FEATURES=HUGE
 # set to yes for a debug build
 DEBUG=no
 
+# set to yes to create a mapfile
+# MAP=yes
+
 # set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
 OPTIMIZE=MAXSPEED
 
@@ -936,6 +939,10 @@ ifeq (yes, $(STATIC_WINPTHREAD))
 LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
 endif
 
+ifeq (yes, $(MAP))
+LFLAGS += -Wl,-Map=$(TARGET).map
+endif
+
 all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
 
 vimrun.exe: vimrun.c
--- a/src/version.c
+++ b/src/version.c
@@ -795,6 +795,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    422,
+/**/
     421,
 /**/
     420,