@@ -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" )
@@ -101,64 +101,64 @@ block()
101101  endif ()
102102
103103  if (CMAKE_SYSTEM_NAME  STREQUAL  "Darwin" )
104-     set (asmFile  "combined_sysv_macho_gas.S" )
104+     set (asm_file  "combined_sysv_macho_gas.S" )
105105  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "AIX" )
106106    # AIX uses a different calling convention (shared with non-_CALL_ELF Linux). 
107107    # The AIX assembler isn't GNU, but the file is compatible. 
108-     set (asmFile  "${prefix} _xcoff_gas.S" )
108+     set (asm_file  "${prefix} _xcoff_gas.S" )
109109  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "FreeBSD" )
110110    if (NOT  cpu STREQUAL  "i386" )
111-       set (asmFile  "${prefix} _elf_gas.S" )
111+       set (asm_file  "${prefix} _elf_gas.S" )
112112    endif ()
113113  elseif (CMAKE_SYSTEM_NAME  STREQUAL  "Windows" )
114114    if (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(x86_64|x64)" )
115-       set (asmFile  "x86_64_ms_pe_masm.asm" )
115+       set (asm_file  "x86_64_ms_pe_masm.asm" )
116116    elseif (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(X86|i[3456]86)" )
117-       set (asmFile  "i386_ms_pe_masm.asm" )
117+       set (asm_file  "i386_ms_pe_masm.asm" )
118118    elseif (CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
119-       set (asmFile  "arm64_aapcs_pe_armasm.asm" )
120-       set (compileOptions  /nologo -machine ARM64)
119+       set (asm_file  "arm64_aapcs_pe_armasm.asm" )
120+       set (compile_options  /nologo -machine ARM64)
121121    endif ()
122122
123-     if (asmFile  AND  NOT  CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
124-       set (compileOptions  /nologo)
123+     if (asm_file  AND  NOT  CMAKE_C_COMPILER_ARCHITECTURE_ID MATCHES  "(ARM64|aarch64)" )
124+       set (compile_options  /nologo)
125125
126-       set (compileDefinitions  "BOOST_CONTEXT_EXPORT=EXPORT" )
126+       set (compile_definitions  "BOOST_CONTEXT_EXPORT=EXPORT" )
127127    endif ()
128128  elseif (prefix )
129-     set (asmFile  "${prefix} _elf_gas.S" )
129+     set (asm_file  "${prefix} _elf_gas.S" )
130130  endif ()
131131
132-   if (asmFile )
132+   if (asm_file )
133133    set (
134-       asmSources 
135-       ${CMAKE_CURRENT_SOURCE_DIR} /asm/jump_${asmFile } 
136-       ${CMAKE_CURRENT_SOURCE_DIR} /asm/make_${asmFile } 
134+       asm_sources 
135+       ${CMAKE_CURRENT_SOURCE_DIR} /asm/jump_${asm_file } 
136+       ${CMAKE_CURRENT_SOURCE_DIR} /asm/make_${asm_file } 
137137    )
138138
139-     if (compileOptions )
139+     if (compile_options )
140140      set_source_files_properties (
141-         ${asmSources } 
141+         ${asm_sources } 
142142        PROPERTIES
143-           COMPILE_OPTIONS ${compileOptions } 
143+           COMPILE_OPTIONS ${compile_options } 
144144      )
145145    endif ()
146146
147-     if (compileDefinitions )
147+     if (compile_definitions )
148148      set_source_files_properties (
149-         ${asmSources } 
149+         ${asm_sources } 
150150        PROPERTIES
151-           COMPILE_DEFINITIONS  ${compileDefinitions } 
151+           COMPILE_DEFINITIONS  ${compile_definitions } 
152152      )
153153    endif ()
154154  endif ()
155155
156156  message (CHECK_START "Checking for fibers switching context support" )
157157
158-   if (PHP_ZEND_FIBER_ASM AND  asmFile )
159-     message (CHECK_PASS "yes, Zend/asm/*.${asmFile } " )
158+   if (PHP_ZEND_FIBER_ASM AND  asm_file )
159+     message (CHECK_PASS "yes, Zend/asm/*.${asm_file } " )
160160
161-     target_sources (zend_fibers INTERFACE  ${asmSources } )
161+     target_sources (zend_fibers INTERFACE  ${asm_sources } )
162162
163163    _php_zend_fibers_shadow_stack_syscall()
164164  else ()
0 commit comments