Skip to content

Commit 08df1a1

Browse files
committed
Improve build error diagnostic
1 parent 67e99e8 commit 08df1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/cmake/modules/CheckCompilerVersion.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ check_compiler_version("MSVC" "Visual Studio" ${MSVC_MIN} ${MSVC_SOFT_ERROR})
5050
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
5151
if (CMAKE_CXX_SIMULATE_ID MATCHES "MSVC")
5252
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_COMPILER_VERSION}.")
53+
message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=${MSVC_MIN}, your version is ${CMAKE_CXX_SIMULATE_VERSION}.")
5454
endif()
5555
set(CLANG_CL 1)
5656
elseif(NOT LLVM_ENABLE_LIBCXX)

0 commit comments

Comments
 (0)