File tree Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Expand file tree Collapse file tree 4 files changed +7
-18
lines changed Original file line number Diff line number Diff 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
2424set (CMAKE_C_STANDARD 99)
Original file line number Diff line number Diff 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- 
5650string (APPEND  Zend_VERSION "${Zend_VERSION_LABEL} " )
5751message (STATUS  "Zend Engine version: ${Zend_VERSION} " )
5852
Original file line number Diff line number Diff line change @@ -4,15 +4,12 @@ Configure project after the project() call.
44
55include_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. 
98include (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. 
1815if (CMAKE_VERSION  VERSION_GREATER_EQUAL  3.29)
Original file line number Diff line number Diff 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)
184182else ()
185183  cmake_push_check_state(RESET)
186184    # To use ucontext.h on macOS, the _XOPEN_SOURCE needs to be defined to any 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments