@@ -71,10 +71,10 @@ endfunction()
7171
7272block()
7373  set (cpu "" )
74-   set (asmFile  "" )
74+   set (asm_file  "" )
7575  set (prefix  "" )
76-   set (compileOptions  "" )
77-   set (compileDefinitions  "" )
76+   set (compile_options  "" )
77+   set (compile_definitions  "" )
7878
7979  # Determine files based on the architecture and platform. 
8080  if (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "x86_64" )
@@ -105,76 +105,76 @@ block()
105105  endif ()
106106
107107  if (CMAKE_SYSTEM_NAME  STREQUAL  "Darwin" )
108-     set (asmFile  "combined_sysv_macho_gas.S" )
108+     set (asm_file  "combined_sysv_macho_gas.S" )
109109  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "AIX" )
110110    # AIX uses a different calling convention (shared with non-_CALL_ELF Linux). 
111111    # The AIX assembler isn't GNU, but the file is compatible. 
112-     set (asmFile  "${prefix} _xcoff_gas.S" )
112+     set (asm_file  "${prefix} _xcoff_gas.S" )
113113  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "FreeBSD" )
114114    if (NOT  cpu STREQUAL  "i386" )
115-       set (asmFile  "${prefix} _elf_gas.S" )
115+       set (asm_file  "${prefix} _elf_gas.S" )
116116    endif ()
117117  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "Windows" )
118118    if (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(x86_64|x64)" )
119-       set (asmFile  "x86_64_ms_pe_masm.asm" )
119+       set (asm_file  "x86_64_ms_pe_masm.asm" )
120120    elseif (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(X86|i[3456]86)" )
121-       set (asmFile  "i386_ms_pe_masm.asm" )
121+       set (asm_file  "i386_ms_pe_masm.asm" )
122122    elseif (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
123-       set (asmFile  "arm64_aapcs_pe_armasm.asm" )
124-       set (compileOptions  /nologo -machine ARM64)
123+       set (asm_file  "arm64_aapcs_pe_armasm.asm" )
124+       set (compile_options  /nologo -machine ARM64)
125125    endif ()
126126
127-     if (asmFile  AND  NOT  CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
128-       set (compileOptions  /nologo)
127+     if (asm_file  AND  NOT  CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
128+       set (compile_options  /nologo)
129129
130-       set (compileDefinitions  "BOOST_CONTEXT_EXPORT=EXPORT" )
130+       set (compile_definitions  "BOOST_CONTEXT_EXPORT=EXPORT" )
131131    endif ()
132132  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "Midipix" )
133133    if (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "x86_64" )
134-       set (asmFile  "x86_64_ms_pe_gas.S" )
134+       set (asm_file  "x86_64_ms_pe_gas.S" )
135135    endif ()
136136  elseif (prefix )
137-     set (asmFile  "${prefix} _elf_gas.S" )
137+     set (asm_file  "${prefix} _elf_gas.S" )
138138  endif ()
139139
140-   if (asmFile )
140+   if (asm_file )
141141    set (
142-       asmSources 
143-       ${CMAKE_CURRENT_SOURCE_DIR} /asm/jump_${asmFile } 
144-       ${CMAKE_CURRENT_SOURCE_DIR} /asm/make_${asmFile } 
142+       asm_sources 
143+       ${CMAKE_CURRENT_SOURCE_DIR} /asm/jump_${asm_file } 
144+       ${CMAKE_CURRENT_SOURCE_DIR} /asm/make_${asm_file } 
145145    )
146146
147147    if (CMAKE_SYSTEM_NAME  STREQUAL  "Windows"  AND  CMAKE_SIZEOF_VOID_P  EQUAL  8)
148148      list (
149149        APPEND 
150-         asmSources 
150+         asm_sources 
151151        ${CMAKE_CURRENT_SOURCE_DIR} /asm/save_xmm_x86_64_ms_masm.asm
152152      )
153153    endif ()
154154
155-     if (compileOptions )
155+     if (compile_options )
156156      set_source_files_properties (
157-         ${asmSources } 
157+         ${asm_sources } 
158158        PROPERTIES
159-           COMPILE_OPTIONS ${compileOptions } 
159+           COMPILE_OPTIONS ${compile_options } 
160160      )
161161    endif ()
162162
163-     if (compileDefinitions )
163+     if (compile_definitions )
164164      set_source_files_properties (
165-         ${asmSources } 
165+         ${asm_sources } 
166166        PROPERTIES
167-           COMPILE_DEFINITIONS  ${compileDefinitions } 
167+           COMPILE_DEFINITIONS  ${compile_definitions } 
168168      )
169169    endif ()
170170  endif ()
171171
172172  message (CHECK_START "Checking for fibers switching context support" )
173173
174-   if (PHP_ZEND_FIBER_ASM AND  asmFile )
175-     message (CHECK_PASS "yes, Zend/asm/*.${asmFile } " )
174+   if (PHP_ZEND_FIBER_ASM AND  asm_file )
175+     message (CHECK_PASS "yes, Zend/asm/*.${asm_file } " )
176176
177-     target_sources (zend_fibers INTERFACE  ${asmSources } )
177+     target_sources (zend_fibers INTERFACE  ${asm_sources } )
178178
179179    _php_zend_fibers_shadow_stack_syscall()
180180  else ()
0 commit comments