Skip to content
Permalink
Browse files
patch 8.0.1646: MS-Windows: executable contains unreferenced functions
Problem:    MS-Windows: executable contains unreferenced functions and data.
Solution:   Add /opt:ref to the compiler command. (Ken Takata)
  • Loading branch information
brammool committed Mar 26, 2018
1 parent 086eb87 commit 4368d5ce8a2fa16826d76eeb32347bbbb4fad2bc
Showing with 5 additions and 1 deletion.
  1. +3 −1 src/Make_mvc.mak
  2. +2 −0 src/version.c
@@ -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

@@ -766,6 +766,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1646,
/**/
1645,
/**/

0 comments on commit 4368d5c

Please sign in to comment.