We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc931b8 commit 45a70fbCopy full SHA for 45a70fb
cmake/cmake/Requirements.cmake
@@ -48,6 +48,18 @@ elseif(
48
"GNU C compiler version ${CMAKE_C_COMPILER_VERSION} is not supported. "
49
"Please upgrade GNU C compiler to at least 4.6 or newer."
50
)
51
+elseif(
52
+ CMAKE_SYSTEM_NAME STREQUAL "Windows"
53
+ AND CMAKE_C_COMPILER_ID MATCHES "Clang"
54
+ AND CMAKE_C_COMPILER_VERSION VERSION_LESS 4
55
+)
56
+ # Clang on Windows has minimum required version:
57
+ # https://github.com/php/php-src/pull/15415
58
+ message(
59
+ FATAL_ERROR
60
+ "Clang C compiler version ${CMAKE_C_COMPILER_VERSION} is not supported. "
61
+ "Please upgrade Clang C compiler to at least 4.0 or newer."
62
+ )
63
endif()
64
65
################################################################################
0 commit comments