Skip to content

Commit 80a4c19

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 7d2c6a7 + f322b94 commit 80a4c19

File tree

5 files changed

+8
-19
lines changed

5 files changed

+8
-19
lines changed

cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ project(
1818
VERSION ${PHP_VERSION}
1919
DESCRIPTION "Widely-used general-purpose scripting language"
2020
HOMEPAGE_URL "https://www.php.net"
21-
LANGUAGES C
21+
LANGUAGES C ASM
2222
)
2323

2424
set(CMAKE_C_STANDARD 11)

cmake/Zend/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,9 @@ project(
4444
Zend
4545
VERSION ${Zend_VERSION}
4646
DESCRIPTION "Zend Engine library"
47-
LANGUAGES C
47+
LANGUAGES C ASM
4848
)
4949

50-
include(CheckLanguage)
51-
check_language(ASM)
52-
if(CMAKE_ASM_COMPILER)
53-
enable_language(ASM)
54-
endif()
55-
5650
string(APPEND Zend_VERSION "${Zend_VERSION_LABEL}")
5751
message(STATUS "Zend Engine version: ${Zend_VERSION}")
5852

cmake/cmake/Bootstrap.cmake

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ Configure project after the project() call.
44

55
include_guard(GLOBAL)
66

7-
# Optionally enable CXX for extensions and ASM for Zend Engine. ASM is enabled
8-
# last so CMake checks whether enabled compilers can also work for assembly.
7+
# Optionally enable CXX for extensions.
98
include(CheckLanguage)
10-
foreach(language CXX ASM)
11-
check_language(${language})
12-
if(CMAKE_${language}_COMPILER)
13-
enable_language(${language})
14-
endif()
15-
endforeach()
9+
check_language(CXX)
10+
if(CMAKE_CXX_COMPILER)
11+
enable_language(CXX)
12+
endif()
1613

1714
# Output linker information.
1815
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.29)

cmake/cmake/modules/Zend/Fibers.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ if(ZEND_FIBER_ASM AND zend_fibers_asm_file)
179179
INTERFACE
180180
$<IF:$<BOOL:${SHADOW_STACK_SYSCALL}>,SHADOW_STACK_SYSCALL=1,SHADOW_STACK_SYSCALL=0>
181181
)
182-
183-
enable_language(ASM)
184182
else()
185183
cmake_push_check_state(RESET)
186184
# To use ucontext.h on macOS, the _XOPEN_SOURCE needs to be defined to any

docs/cmake/variables/ZEND_FIBER_ASM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Values: `ON|OFF`
66

77
Enable the use of Boost fiber assembly files using the
88
[Zend/Fibers](/docs/cmake/modules/Zend/Fibers.md) module. If disabled or system
9-
isn't supported, fiber support will be run through ucontext.
9+
isn't supported, fiber support will be run through the legacy ucontext.
1010

1111
> [!NOTE]
1212
> When target system is Windows, this option is always set to `ON` and option is

0 commit comments

Comments
 (0)