[llvm] r284665 - Update Compiler.h to fail fast when building with MSVC 2013

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 16:34:59 PDT 2016


Author: rnk
Date: Wed Oct 19 18:34:58 2016
New Revision: 284665

URL: http://llvm.org/viewvc/llvm-project?rev=284665&view=rev
Log:
Update Compiler.h to fail fast when building with MSVC 2013

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=284665&r1=284664&r2=284665&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Oct 19 18:34:58 2016
@@ -60,14 +60,13 @@
 /// \macro LLVM_MSC_PREREQ
 /// \brief Is the compiler MSVC of at least the specified version?
 /// The common \param version values to check for are:
-///  * 1800: Microsoft Visual Studio 2013 / 12.0
 ///  * 1900: Microsoft Visual Studio 2015 / 14.0
 #ifdef _MSC_VER
 #define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
 
-// We require at least MSVC 2013.
-#if !LLVM_MSC_PREREQ(1800)
-#error LLVM requires at least MSVC 2013.
+// We require at least MSVC 2015.
+#if !LLVM_MSC_PREREQ(1900)
+#error LLVM requires at least MSVC 2015.
 #endif
 
 #else




More information about the llvm-commits mailing list