]> granicus.if.org Git - vim/commitdiff
patch 8.1.0422: cannot create map file with MinGW v8.1.0422
authorBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 12:43:10 +0000 (14:43 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 21 Sep 2018 12:43:10 +0000 (14:43 +0200)
Problem:    Cannot create map file with MinGW.
Solution:   Add support for $MAP. (Ken Takata, closes #3460)

src/Make_cyg_ming.mak
src/version.c

index ca0fa97a3c9b2baeee56e50ec4aa29068fb77d60..f3819517ec71e2b02c3c72ef7d266d5324350774 100644 (file)
@@ -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
index c541dc9a15ad9cd5afd485ccec7e8929e36a50d5..372fe87f3feb7be5d93b7912e5e59e31810c1470 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    422,
 /**/
     421,
 /**/