comparison src/Make_mvc.mak @ 18662:652ac5edf8d0 v8.1.2323

patch 8.1.2323: Old MSVC version no longer tested. Commit: https://github.com/vim/vim/commit/a07549008207099e8b7884d11d7c8a106e290cb9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 19 23:01:28 2019 +0100 patch 8.1.2323: Old MSVC version no longer tested. Problem: Old MSVC version no longer tested. Solution: Drop support for MSCV 2008 and older. (Ken Takata, closes https://github.com/vim/vim/issues/5248)
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Nov 2019 23:15:04 +0100
parents b1a10a018f83
children 217c97e06615
comparison
equal deleted inserted replaced
18661:13331e05a1c8 18662:652ac5edf8d0
1 # Makefile for Vim on Win32 (Windows XP/2003/Vista/7/8/10) and Win64, 1 # Makefile for Vim on Win32 (Windows XP/2003/Vista/7/8/10) and Win64,
2 # using the Microsoft Visual C++ compilers. Known to work with VC5, VC6 (VS98), 2 # using the Microsoft Visual C++ compilers. Known to work with VC10 (VS2010),
3 # VC7.0 (VS2002), VC7.1 (VS2003), VC8 (VS2005), VC9 (VS2008), VC10 (VS2010), 3 # VC11 (VS2012), VC12 (VS2013), VC14 (VS2015), VC14.1 (VS2017) and
4 # VC11 (VS2012), VC12 (VS2013), VC14 (VS2015) and VC15 (VS2017) 4 # VC14.2 (VS2019).
5 # 5 #
6 # To build using other Windows compilers, see INSTALLpc.txt 6 # To build using other Windows compilers, see INSTALLpc.txt
7 # 7 #
8 # This makefile can build the console, GUI, OLE-enable, Perl-enabled and 8 # This makefile can build the console, GUI, OLE-enable, Perl-enabled and
9 # Python-enabled versions of Vim for Win32 platforms. 9 # Python-enabled versions of Vim for Win32 platforms.
274 !endif 274 !endif
275 275
276 !if $(MSVCVER) < 1900 276 !if $(MSVCVER) < 1900
277 MSVC_MAJOR = ($(MSVCVER) / 100 - 6) 277 MSVC_MAJOR = ($(MSVCVER) / 100 - 6)
278 MSVCRT_VER = ($(MSVCVER) / 10 - 60) 278 MSVCRT_VER = ($(MSVCVER) / 10 - 60)
279 # Visual C++ 2017 needs special handling
280 # it has an _MSC_VER of 1910->14.1, but is actually v15 with runtime v140
281 # TODO: what's the maximum value?
282 !elseif $(MSVCVER) >= 1910
283 MSVC_MAJOR = 15
284 MSVCRT_VER = 140
285 !else 279 !else
286 MSVC_MAJOR = ($(MSVCVER) / 100 - 5) 280 MSVC_MAJOR = ($(MSVCVER) / 100 - 5)
287 MSVCRT_VER = ($(MSVCVER) / 10 - 50) 281 MSVCRT_VER = ($(MSVCVER) / 100 * 10 - 50)
288 !endif 282 !endif
289 283
290 # Calculate MSVC_FULL for Visual C++ 8 and up. 284 # Calculate MSVC_FULL for Visual C++ 8 and up.
291 !if $(MSVC_MAJOR) >= 8 285 !if $(MSVC_MAJOR) >= 8
292 ! if [echo MSVC_FULL=_MSC_FULL_VER> msvcfullver.c && $(CC) /EP msvcfullver.c > msvcfullver.~ 2> nul] 286 ! if [echo MSVC_FULL=_MSC_FULL_VER> msvcfullver.c && $(CC) /EP msvcfullver.c > msvcfullver.~ 2> nul]