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.
2 parents 69d2514 + 45a70fb commit cd0b75cCopy full SHA for cd0b75c
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