Skip to content

Commit 4c33252

Browse files
committed
Set LLVM_FORCE_USE_OLD_TOOLCHAIN to disable VS2019 checks
VS2019 version 1920 in now the default and get tested in llvm/include/llvm/Support/Compiler.h. This patch propagates LLVM_FORCE_USE_OLD_TOOLCHAIN macro to disable testing for VS2019. Differential Revision: https://reviews.llvm.org/D114639
1 parent 0024f66 commit 4c33252

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,7 @@
109109
/* Define if building LLVM with BUILD_SHARED_LIBS */
110110
#cmakedefine LLVM_BUILD_SHARED_LIBS
111111

112+
/* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */
113+
#cmakedefine LLVM_FORCE_USE_OLD_TOOLCHAIN $(LLVM_FORCE_USE_OLD_TOOLCHAIN)
114+
112115
#endif

llvm/include/llvm/Support/Compiler.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@
9090
#define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
9191

9292
// We require at least VS 2019.
93+
#if !defined(LLVM_FORCE_USE_OLD_TOOLCHAIN)
9394
#if !LLVM_MSC_PREREQ(1920)
9495
#error LLVM requires at least VS 2019.
9596
#endif
97+
#endif
9698

9799
#else
98100
#define LLVM_MSC_PREREQ(version) 0

0 commit comments

Comments
 (0)