Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/tmp/8.0-2019-01-16' into rustc/8…
Browse files Browse the repository at this point in the history
….0-2019-01-16
  • Loading branch information
alexcrichton committed Mar 18, 2019
2 parents ce9347d + 4fc9fb8 commit 8f80418
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/cmake/modules/CheckCompilerVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ check_compiler_version("MSVC" "Visual Studio" ${MSVC_MIN} ${MSVC_SOFT_ERROR})

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

0 comments on commit 8f80418

Please sign in to comment.