From e1d6998f5d5952481ac29a731430c2c93ed08b6a Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 19 Oct 2016 23:34:58 +0000 Subject: [PATCH] Update Compiler.h to fail fast when building with MSVC 2013 llvm-svn: 284665 --- llvm/include/llvm/Support/Compiler.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index c923e9b..33a0399 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -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 -- 2.7.4