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

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 24 09:18:54 PDT 2016


+Teresa

Might want to do something similar for min GCC version, too (if we don't
have it already)?

On Wed, Oct 19, 2016 at 4:44 PM Reid Kleckner via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161024/2f22a001/attachment.html>


More information about the llvm-commits mailing list