]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2408: MinGW: "--preprocessor" flag no longer supported v8.2.2408
authorBram Moolenaar <Bram@vim.org>
Mon, 25 Jan 2021 18:18:02 +0000 (19:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 25 Jan 2021 18:18:02 +0000 (19:18 +0100)
Problem:    MinGW: "--preprocessor" flag no longer supported.
Solution:   Remove the flag, use the defaults. (Christopher Wellons,
            closes #7741)

src/GvimExt/Make_ming.mak
src/Make_cyg_ming.mak
src/version.c

index a6ab3ae10e26e2d30d68fc1fe0a6486633c66df9..8d1714281765e8858087a4df88cc36b8b8cf03fb 100644 (file)
@@ -49,8 +49,8 @@ WINVER = 0x0501
 endif
 CXX := $(CROSS_COMPILE)g++
 WINDRES := $(CROSS_COMPILE)windres
-WINDRES_CXX = $(CXX)
-WINDRES_FLAGS = --preprocessor="$(WINDRES_CXX) -E -xc" -DRC_INVOKED
+# this used to have --preprocessor, but it's no longer supported
+WINDRES_FLAGS =
 LIBS :=  -luuid -lgdi32
 RES  := gvimext.res
 DEFFILE = gvimext_ming.def
index b6dd928b12d488c33149ed68977f9b59a46a9532..8895d2797fb2a32cb586a19739a63f52026b796c 100644 (file)
@@ -220,7 +220,6 @@ WINDRES := $(CROSS_COMPILE)windres
 else
 WINDRES := windres
 endif
-WINDRES_CC = $(CC)
 
 # Get the default ARCH.
 ifndef ARCH
@@ -514,7 +513,8 @@ endif
 
 CFLAGS = -I. -Iproto $(DEFINES) -pipe -march=$(ARCH) -Wall
 CXXFLAGS = -std=gnu++11
-WINDRES_FLAGS = --preprocessor="$(WINDRES_CC) -E -xc" -DRC_INVOKED
+# This used to have --preprocessor, but it's no longer supported
+WINDRES_FLAGS =
 EXTRA_LIBS =
 
 ifdef GETTEXT
index 0602b9d8761a2b3659c93ef09c366c4837e5874a..dce32e73360f69fda4eddbe9ec4d46f4ae4a259c 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2408,
 /**/
     2407,
 /**/