From 071bf231b7d78fd4b31af04428730402b152577c Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Tue, 4 Jul 2017 16:48:39 +0200 Subject: [PATCH] Fromm Frederich Munch: Fix CxxStdCompiledWith for Visual Studio, which requires C++14 --- lib/Interpreter/CIFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/CIFactory.cpp b/lib/Interpreter/CIFactory.cpp index 61340fa6..51bcb988 100644 --- a/lib/Interpreter/CIFactory.cpp +++ b/lib/Interpreter/CIFactory.cpp @@ -60,9 +60,9 @@ namespace { // I would claim that the check should be relaxed to: #if __cplusplus > 201402L return 17; -#elif __cplusplus > 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER == 1910) +#elif __cplusplus > 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER >= 1900) return 14; -#elif __cplusplus >= 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER == 1900) +#elif __cplusplus >= 201103L return 11; #else #error "Unknown __cplusplus version"