Skip to content

Commit 29cd7f9

Browse files
committed
ext/opcache: Add warning on Windows ARM systems
1 parent a6117ac commit 29cd7f9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cmake/ext/opcache/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,16 @@ endif()
138138
# Check if JIT is supported by the target architecture.
139139
if(PHP_EXT_OPCACHE_JIT)
140140
if(
141+
CMAKE_SYSTEM_NAME STREQUAL "Windows"
142+
AND CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES "(arm|aarch64|ARM)"
143+
)
144+
message(
145+
WARNING
146+
"JIT is not supported by target architecture "
147+
"${CMAKE_C_COMPILER_ARCHITECTURE_ID}"
148+
)
149+
set_property(CACHE PHP_EXT_OPCACHE_JIT PROPERTY VALUE OFF)
150+
elseif(
141151
NOT CMAKE_C_COMPILER_ARCHITECTURE_ID
142152
MATCHES "(i[3456]86|x86_64|aarch64|arm64|x64|X86)"
143153
)

0 commit comments

Comments
 (0)