]> granicus.if.org Git - vim/commitdiff
patch 8.0.1646: MS-Windows: executable contains unreferenced functions v8.0.1646
authorBram Moolenaar <Bram@vim.org>
Mon, 26 Mar 2018 18:55:10 +0000 (20:55 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 26 Mar 2018 18:55:10 +0000 (20:55 +0200)
Problem:    MS-Windows: executable contains unreferenced functions and data.
Solution:   Add /opt:ref to the compiler command. (Ken Takata)

src/Make_mvc.mak
src/version.c

index d5159abd9fa7e35c9a4caca280f10e9b2ddd1200..5ca53808771fd180369e18f16e7f35eeb95d637d 100644 (file)
@@ -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
 
index 2cc99778d4def038bb38e9cf59e94499db846a40..14bf136adabaf769d439e0993d2052584a7095ed 100644 (file)
@@ -766,6 +766,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1646,
 /**/
     1645,
 /**/