Skip to content

Commit 456fc4f

Browse files
committed
Retire VS2015 Support
As proposed here: https://lists.llvm.org/pipermail/llvm-dev/2019-June/133147.html This patch raises the minimum supported version to build LLVM/Clang to Visual Studio 2017. Differential Revision: https://reviews.llvm.org/D64326 llvm-svn: 365452
1 parent 4363edb commit 456fc4f

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

llvm/cmake/modules/CheckCompilerVersion.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ set(CLANG_MIN 3.1)
1010
set(CLANG_SOFT_ERROR 3.5)
1111
set(APPLECLANG_MIN 3.1)
1212
set(APPLECLANG_SOFT_ERROR 6.0)
13-
set(MSVC_MIN 19.00.24213.1)
13+
14+
# https://en.wikipedia.org/wiki/Microsoft_Visual_C#Internal_version_numbering
15+
# _MSC_VER == 1910 MSVC++ 14.1 (Visual Studio 2017 version 15.0)
16+
set(MSVC_MIN 19.1)
1417
set(MSVC_SOFT_ERROR 19.1)
1518

1619
# Map the above GCC versions to dates: https://gcc.gnu.org/develop.html#timeline

llvm/docs/GettingStarted.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ with the following compilers, though this will change in the near future:
240240
* Clang 3.1
241241
* Apple Clang 3.1
242242
* GCC 4.8
243-
* Visual Studio 2015 (Update 3)
243+
* Visual Studio 2017
244244

245245
Anything older than these toolchains *may* work, but will require forcing the
246246
build system with a special option and is not really a supported host platform.
@@ -275,7 +275,7 @@ Getting a Modern Host C++ Toolchain
275275
This section mostly applies to Linux and older BSDs. On macOS, you should
276276
have a sufficiently modern Xcode, or you will likely need to upgrade until you
277277
do. Windows does not have a "system compiler", so you must install either Visual
278-
Studio 2015 or a recent version of mingw64. FreeBSD 10.0 and newer have a modern
278+
Studio 2017 or a recent version of mingw64. FreeBSD 10.0 and newer have a modern
279279
Clang as the system compiler.
280280

281281
However, some Linux distributions and some other or older BSDs sometimes have

llvm/docs/GettingStartedVS.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ and software you will need.
3939

4040
Hardware
4141
--------
42-
Any system that can adequately run Visual Studio 2015 is fine. The LLVM
42+
Any system that can adequately run Visual Studio 2017 is fine. The LLVM
4343
source tree and object files, libraries and executables will consume
4444
approximately 3GB.
4545

4646
Software
4747
--------
48-
You will need Visual Studio 2015 or higher, with the latest Update installed.
48+
You will need Visual Studio 2017 or higher, with the latest Update installed.
4949

5050
You will also need the `CMake <http://www.cmake.org/>`_ build system since it
5151
generates the project files you will use to build with.

llvm/docs/ReleaseNotes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ Changes to the LLVM IR
7676
pointee type. In the next release we intend to make this parameter
7777
mandatory in preparation for opaque pointer types.
7878

79+
Changes to building LLVM
80+
------------------------
81+
82+
* Building LLVM with Visual Studio now requires version 2017 or later.
83+
84+
7985
Changes to the ARM Backend
8086
--------------------------
8187

0 commit comments

Comments
 (0)