From d7383881c8e9f474a909b54b21abb0aa2b412ba2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 13 Jun 2017 15:22:12 +0200 Subject: patch 8.0.0638: cannot build with new MSVC version Problem: Cannot build with new MSVC version VS2017. Solution: Change the compiler arguments. (Leonardo Manera, closes #1731, closes #1747) --- src/GvimExt/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/GvimExt') diff --git a/src/GvimExt/Makefile b/src/GvimExt/Makefile index 798efd204a..043d37da2c 100644 --- a/src/GvimExt/Makefile +++ b/src/GvimExt/Makefile @@ -1,11 +1,14 @@ # Makefile for GvimExt, using MSVC # Options: # DEBUG=yes Build debug version (for VC7 and maybe later) +# CPUARG= /arch:IA32/AVX/etc, call from main makefile to set +# automatically from CPUNR # -TARGETOS=WINNT +TARGETOS = WINNT + !ifndef APPVER -APPVER=5.0 +APPVER = 5.01 !endif !if "$(DEBUG)" != "yes" @@ -37,6 +40,9 @@ CPU = i386 !include !endif +# include CPUARG +cflags = $(cflags) $(CPUARG) + all: gvimext.dll gvimext.dll: gvimext.obj \ -- cgit v1.2.3