]> granicus.if.org Git - vim/commitdiff
patch 9.0.0524: build instructions for MS-Windows are outdated v9.0.0524
authorBram Moolenaar <Bram@vim.org>
Tue, 20 Sep 2022 20:23:12 +0000 (21:23 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 20 Sep 2022 20:23:12 +0000 (21:23 +0100)
Problem:    Build instructions for MS-Windows are outdated.
Solution:   Remove instructions for old MSVC versions.

Filelist
runtime/doc/develop.txt
src/INSTALLpc.txt
src/msvc2008.bat [deleted file]
src/msvc2010.bat [deleted file]
src/version.c

index 519964b61d5c83ce00e24c3ce499354e07b28194..014a801374899d782c736504adb5877c4582ea53 100644 (file)
--- 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 \
index 4739a102ae26922fbb18e18720c516dfa6ca1ef0..f76a9456e2a70eb6baed115367938ab0567d0049 100644 (file)
@@ -188,8 +188,8 @@ C COMPILER                          *style-compiler* *ANSI-C* *C89* *C99*
 
 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)
index 555a1d61642eb558edd38e9648c9527d35444a15..a73f71894635f821afe595cde0e429fc326c8ad9 100644 (file)
@@ -60,18 +60,22 @@ Build Tools for Visual Studio 2015 with Update 3" make sure to
 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.
 
-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.
+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.
 
 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.mak.
 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.
-
-
-Visual C++ 2010 Express Edition       *msvc-2010-express*
--------------------------------
+Ron Aaron; they have been tested.  But several things changed after that...
 
-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 Leendert van Doorn.
 
 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
diff --git a/src/msvc2008.bat b/src/msvc2008.bat
deleted file mode 100644 (file)
index c1cd76a..0000000
+++ /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"
diff --git a/src/msvc2010.bat b/src/msvc2010.bat
deleted file mode 100644 (file)
index 5c258e9..0000000
+++ /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"
index d40a598418e37c0c7b7715659c1e02dc9d2a1d2c..40273fcd01827ef5ccbe7b2e47cd51c4bc4b551b 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    524,
 /**/
     523,
 /**/