diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-26 20:55:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-26 20:55:10 +0200 |
commit | 4368d5ce8a2fa16826d76eeb32347bbbb4fad2bc (patch) | |
tree | ccbcae6b068e3cdac900c0ace79f4d9908a010c7 | |
parent | 086eb876951aa0b0bee3de4ed0569bf4b70c6f31 (diff) | |
download | vim-git-4368d5ce8a2fa16826d76eeb32347bbbb4fad2bc.tar.gz |
patch 8.0.1646: MS-Windows: executable contains unreferenced functionsv8.0.1646
Problem: MS-Windows: executable contains unreferenced functions and data.
Solution: Add /opt:ref to the compiler command. (Ken Takata)
-rw-r--r-- | src/Make_mvc.mak | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index d5159abd9..5ca538087 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -1158,7 +1158,9 @@ LINK_PDB = /PDB:$(VIM).pdb -debug # CFLAGS with /Fo$(OUTDIR)/ CFLAGS_OUTDIR=$(CFLAGS) /Fo$(OUTDIR)/ -conflags = /nologo /subsystem:$(SUBSYSTEM) +# Add /opt:ref to remove unreferenced functions and data even when /DEBUG is +# added. +conflags = /nologo /subsystem:$(SUBSYSTEM) /opt:ref PATHDEF_SRC = $(OUTDIR)\pathdef.c diff --git a/src/version.c b/src/version.c index 2cc99778d..14bf136ad 100644 --- a/src/version.c +++ b/src/version.c @@ -767,6 +767,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1646, +/**/ 1645, /**/ 1644, |