Skip to content

[flang] Add cmake error if building with clang-cl and MSVC 17.12 #120114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading