Skip to content

Commit

Permalink
[flang] Add cmake error if building with clang-cl and MSVC 17.12 (#12…
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidTruby authored Dec 18, 2024
1 parent 55e87a7 commit 4c6e13f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ if (MSVC AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
if (IS_DIRECTORY "${LIBDIR}")
link_libraries(${CLANG_RT_BUILTINS_LIBRARY})
endif()

if (MSVC_VERSION EQUAL 1942)
message(FATAL_ERROR "Flang cannot be built with clang and the MSVC 17.12 "
"toolchain version. Please upgrade to 17.13 or later, or switch "
"to the 17.10 LTSC release. "
"See https://github.com/microsoft/STL/issues/4959 for more details.")
endif()
endif()

if(CMAKE_SIZEOF_VOID_P EQUAL 4)
Expand Down

0 comments on commit 4c6e13f

Please sign in to comment.