summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2019-08-02 00:50:12 +0000
committerJF Bastien <jfbastien@apple.com>2019-08-02 00:50:12 +0000
commit975c51c3ff0f83dffb8b01ab06f376924bab7200 (patch)
treea9c92a783c9d486369827da38aacabe4a6b0ddac
parente063eccc19c51572db67cf0689b594b3e5dc4d9e (diff)
downloadbcm5719-llvm-975c51c3ff0f83dffb8b01ab06f376924bab7200.tar.gz
bcm5719-llvm-975c51c3ff0f83dffb8b01ab06f376924bab7200.zip
Update Compiler.h check for MSVC
We require at least MSVC 2017, but I forgot to update Compiler.h when I updated the MSVC requirement. llvm-svn: 367639
-rw-r--r--llvm/include/llvm/Support/Compiler.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index 356ff6f0486..43114ad3a43 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -62,13 +62,21 @@
/// \macro LLVM_MSC_PREREQ
/// Is the compiler MSVC of at least the specified version?
/// The common \param version values to check for are:
-/// * 1900: Microsoft Visual Studio 2015 / 14.0
+/// * 1910: VS2017, version 15.1 & 15.2
+/// * 1911: VS2017, version 15.3 & 15.4
+/// * 1912: VS2017, version 15.5
+/// * 1913: VS2017, version 15.6
+/// * 1914: VS2017, version 15.7
+/// * 1915: VS2017, version 15.8
+/// * 1916: VS2017, version 15.9
+/// * 1920: VS2019, version 16.0
+/// * 1921: VS2019, version 16.1
#ifdef _MSC_VER
#define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
-// We require at least MSVC 2015.
-#if !LLVM_MSC_PREREQ(1900)
-#error LLVM requires at least MSVC 2015.
+// We require at least MSVC 2017.
+#if !LLVM_MSC_PREREQ(1910)
+#error LLVM requires at least MSVC 2017.
#endif
#else
OpenPOWER on IntegriCloud