[llvm] r202631 - [C++11] Clarify in the Compiler.h support macros and comments (and
Chandler Carruth
chandlerc at gmail.com
Sun Mar 2 02:07:45 PST 2014
Author: chandlerc
Date: Sun Mar 2 04:07:45 2014
New Revision: 202631
URL: http://llvm.org/viewvc/llvm-project?rev=202631&view=rev
Log:
[C++11] Clarify in the Compiler.h support macros and comments (and
assert it with an #error) that we require MSVC 2012; MSVC 2010 will no
longer suffice.
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=202631&r1=202630&r2=202631&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Sun Mar 2 04:07:45 2014
@@ -47,11 +47,16 @@
/// \macro LLVM_MSC_PREREQ
/// \brief Is the compiler MSVC of at least the specified version?
/// The common \param version values to check for are:
-/// * 1600: Microsoft Visual Studio 2010 / 10.0
/// * 1700: Microsoft Visual Studio 2012 / 11.0
/// * 1800: Microsoft Visual Studio 2013 / 12.0
#ifdef _MSC_VER
#define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
+
+// We require at least MSVC 2012.
+#if !LLVM_MSC_PREREQ(1700)
+#error LLVM requires at least MSVC 2012.
+#endif
+
#else
#define LLVM_MSC_PREREQ(version) 0
#endif
More information about the llvm-commits
mailing list