Skip to content

Commit 4ff4290

Browse files
committed
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 #3460)
1 parent 76c612a commit 4ff4290

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/Make_cyg_ming.mak

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ FEATURES=HUGE
3535
# set to yes for a debug build
3636
DEBUG=no
3737

38+
# set to yes to create a mapfile
39+
# MAP=yes
40+
3841
# set to SIZE for size, SPEED for speed, MAXSPEED for maximum optimization
3942
OPTIMIZE=MAXSPEED
4043

@@ -936,6 +939,10 @@ ifeq (yes, $(STATIC_WINPTHREAD))
936939
LIB += -Wl,-Bstatic -lwinpthread -Wl,-Bdynamic
937940
endif
938941

942+
ifeq (yes, $(MAP))
943+
LFLAGS += -Wl,-Map=$(TARGET).map
944+
endif
945+
939946
all: $(TARGET) vimrun.exe xxd/xxd.exe install.exe uninstal.exe GvimExt/gvimext.dll
940947

941948
vimrun.exe: vimrun.c

src/version.c

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

795795
static int included_patches[] =
796796
{ /* Add new patch number below this line */
797+
/**/
798+
422,
797799
/**/
798800
421,
799801
/**/

0 commit comments

Comments
 (0)