Skip to content

Commit cd0b75c

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 69d2514 + 45a70fb commit cd0b75c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmake/cmake/Requirements.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,18 @@ elseif(
4848
"GNU C compiler version ${CMAKE_C_COMPILER_VERSION} is not supported. "
4949
"Please upgrade GNU C compiler to at least 4.6 or newer."
5050
)
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+
)
5163
endif()
5264

5365
################################################################################

0 commit comments

Comments
 (0)