changeset 30377:c9d2c554f314 v9.0.0524

patch 9.0.0524: build instructions for MS-Windows are outdated Commit: https://github.com/vim/vim/commit/4cbdcbda2d0abef3d7443320d7716f0e63e2df68 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 20 21:23:12 2022 +0100 patch 9.0.0524: build instructions for MS-Windows are outdated Problem: Build instructions for MS-Windows are outdated. Solution: Remove instructions for old MSVC versions.
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Sep 2022 22:30:04 +0200
parents 02707401e94e
children 403d8362f8d1
files Filelist runtime/doc/develop.txt src/INSTALLpc.txt src/msvc2008.bat src/msvc2010.bat src/version.c
diffstat 6 files changed, 32 insertions(+), 73 deletions(-) [+]
line wrap: on
line diff
--- a/Filelist
+++ b/Filelist
@@ -538,8 +538,6 @@ SRC_DOS =	\
 		tools/rename.bat \
 		src/bigvim.bat \
 		src/bigvim64.bat \
-		src/msvc2008.bat \
-		src/msvc2010.bat \
 		src/msvc2015.bat \
 		src/msys32.bat \
 		src/msys64.bat \
--- a/runtime/doc/develop.txt
+++ b/runtime/doc/develop.txt
@@ -188,8 +188,8 @@ C COMPILER				*style-compiler* *ANSI-C* 
 
 The minimal C compiler version supported is C89, also known as ANSI C.
 Later standards, such as C99, are not widely supported, or at least not 100%
-supported.  Therefore we use only some of the C99 features and disallow some
-(at least for now).
+supported.  Therefore we use only some of the C99 features and explicitly
+disallow some (this will gradually be adjusted over time).
 
 Please don't make changes everywhere to use the C99 features, it causes merge
 problems for existing patches.  Only use them for new and changed code.
@@ -215,12 +215,21 @@ Types ~
 "long long" is allowed and can be expected to be 64 bits.  Use %lld in printf
 formats.  Also "long long unsigned" with %llu.
 
+Declarations ~
+
+Now that the minimal supported compiler is MSVC 2015 declarations do not need
+to be at the start of a block.  However, it is often a good idea to do this
+anyway.
+
+Declaration of the for loop variable inside the loop is recommended:
+	for (int i = 0; i < len; ++i)
+Since this is clearly an advantage we'll use this more often.
+
+
 Not to be used ~
 
 These C99 features are not to be used, because not enough compilers support
 them:
-- Declaration after Statements (MSVC 2012 does not support it).  All
-  declarations need to be at the start of the block.
 - Variable length arrays (even in C11 this is an optional feature).
 - _Bool and _Complex types.
 - "inline" (it's hardly ever needed, let the optimizer do its work)
--- a/src/INSTALLpc.txt
+++ b/src/INSTALLpc.txt
@@ -60,18 +60,22 @@ Build Tools for Visual Studio 2015 with 
 select "custom" and check all checkboxes under "Universal Windows App
 Development Tools".  Or whatever they are called now.
 (If you still want to target Windows XP, check also "Windows XP Support for
-C++".  Note that this is no longer supported.)
+C++".  Note that with the current source code this is no longer supported, you
+will have to check out an older version).
 
 
 Visual Studio
 -------------
 
-Building with Visual Studio (VS2010, VS2012, VS2013, VS2015, VS2017, VS2019
-and VS2022) is straightforward.
+Building with Visual Studio (VS2015, VS2017, VS2019 and VS2022) is
+straightforward.  Older versions probably don't work.
+
+Visual Studio installed a batch file called vcvars32.bat, which you must
+run to set up paths for nmake and MSVC.  We provide a batch file
+"msvc2015.bat" for this.  You may need to edit it if you didn't instal Visual
+Studio in the standard location.
 
 To build Vim from the command line with MSVC, use Make_mvc.mak.
-Visual Studio installed a batch file called vcvars32.bat, which you must
-run to set up paths for nmake and MSVC.
 
 nmake -f Make_mvc.mak		console   Win32 SDK or Microsoft Visual C++
 nmake -f Make_mvc.mak GUI=yes	GUI	  Microsoft Visual C++
@@ -88,24 +92,13 @@ to the parameters you pass to Make_mvc.m
 See the specific files for comments and options.
 
 These files have been supplied by George V. Reilly, Ben Singer, Ken Scott and
-Ron Aaron; they have been tested.
+Ron Aaron; they have been tested.  But several things changed after that...
 
 
-Visual C++ 2010 Express Edition       *msvc-2010-express*
--------------------------------
-
-Visual C++ 2010 Express Edition can be downloaded for free from:
-    http://www.microsoft.com/express/vc/Default.aspx
-This includes the IDE and the debugger.
-
-To set the environment execute the msvc2010.bat script.  You can then build
-Vim with Make_mvc.mak.
-
-
-Targeting Windows XP with MSVC 2012 and later      *new-msvc-windows-xp*
+Targeting Windows XP with MSVC 2015 and later      *new-msvc-windows-xp*
 ---------------------------------------------
 
-(The support for pre-Vista was removed in patch 9.0.0xxx.  If you want to
+(The support for pre-Vista was removed in patch 9.0.0496.  If you want to
 target Windows XP, use the source code before that.)
 
 Beginning with Visual C++ 2012, Microsoft changed the behavior of LINK.EXE
@@ -157,42 +150,13 @@ The ARM64 support was provided by Leende
 
 OLDER VERSIONS
 
-The minimal supported version is Windows 7. Building with older compilers
-might still work, but these instructions might be outdated.
+The minimal supported version is Windows 7. Building with compilers
+older than 2015 most likely doesn't work.  Since MSVC 2015 can be obtained for
+free there is no point in supporting older versions.
 
 If you need the executable to run on Windows 98 or ME, use the 2005 one
-|msvc-2005-express|, and use the source code before 8.0.0029.
-
-
-Visual C++ 2005 Express Edition       *msvc-2005-express*
--------------------------------
-
-NOTE: this most likely does not work
-
-Visual C++ 2005 Express Edition can be downloaded for free from:
-    http://msdn.microsoft.com/vstudio/express/visualC/default.aspx
-This includes the IDE and the debugger. You will also need
-|ms-platform-sdk|. You can build Vim with Make_mvc.mak.
-
-Instructions for integrating the Platform SDK into VC Express:
-    http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx
-
-
-Visual C++ 2008 Express Edition       *msvc-2008-express*
--------------------------------
-
-NOTE: this most likely does not work
-
-Visual C++ 2008 Express Edition can be downloaded for free from:
-    http://www.microsoft.com/express/downloads/
-This includes the IDE and the debugger.
-
-To set the environment execute the msvc2008.bat script.  You can then build
-Vim with Make_mvc.mak.
-
-For building 64 bit binaries you also need to install the SDK:
-"Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1"
-You don't need the examples and documentation.
+|msvc-2005-express|, and use the source code before 8.0.0029.  See the
+src/INSTALLpc.txt file for instructions.
 
 
 2. MSYS2 with MinGW
deleted file mode 100644
--- a/src/msvc2008.bat
+++ /dev/null
@@ -1,7 +0,0 @@
-@echo off
-rem To be used on MS-Windows for Visual C++ 2008 Express Edition
-rem   aka Microsoft Visual Studio 9.0.
-rem See INSTALLpc.txt for information.
-@echo on
-
-call "%VS90COMNTOOLS%vsvars32.bat"
deleted file mode 100644
--- a/src/msvc2010.bat
+++ /dev/null
@@ -1,7 +0,0 @@
-@echo off
-rem To be used on MS-Windows for Visual C++ 2010 Express Edition
-rem   aka Microsoft Visual Studio 10.0.
-rem See INSTALLpc.txt for information.
-@echo on
-
-call "%VS100COMNTOOLS%vsvars32.bat"
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    524,
+/**/
     523,
 /**/
     522,