Skip to content

Commit 8f80418

Browse files
committed
Merge remote-tracking branch 'origin/tmp/8.0-2019-01-16' into rustc/8.0-2019-01-16
2 parents ce9347d + 4fc9fb8 commit 8f80418

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/cmake/modules/CheckCompilerVersion.cmake

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ check_compiler_version("MSVC" "Visual Studio" ${MSVC_MIN} ${MSVC_SOFT_ERROR})
4949

5050
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
5151
if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
52+
if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS MSVC_MIN)
53+
message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_SIMULATE_VERSION}.")
54+
endif()
5255
set(CLANG_CL 1)
5356
elseif(NOT LLVM_ENABLE_LIBCXX)
5457
# Test that we aren't using too old of a version of libstdc++.

0 commit comments

Comments
 (0)