File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,8 @@ mark_as_advanced(PHP_DTRACE)
132132
133133set (PHP_FD_SETSIZE "" CACHE STRING "Size of file descriptor sets" )
134134if (CMAKE_SYSTEM_NAME STREQUAL "Windows" AND PHP_FD_SETSIZE STREQUAL "" )
135+ # This allows up to 256 sockets to be select()ed in a single call to select(),
136+ # instead of the usual 64.
135137 set_property (CACHE PHP_FD_SETSIZE PROPERTY VALUE "256" )
136138endif ()
137139mark_as_advanced (PHP_FD_SETSIZE)
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ if(PHP_FD_SETSIZE MATCHES "^[0-9]+$" AND PHP_FD_SETSIZE GREATER 0)
446446 target_compile_definitions (
447447 php_config
448448 INTERFACE
449- $<$<COMPILE_LANGUAGE:ASM, C,CXX>:FD_SETSIZE=${PHP_FD_SETSIZE} >
449+ $<$<COMPILE_LANGUAGE:C,CXX>:FD_SETSIZE=${PHP_FD_SETSIZE} >
450450 )
451451elseif (NOT PHP_FD_SETSIZE STREQUAL "" )
452452 message (
@@ -893,7 +893,7 @@ if(PHP_DMALLOC)
893893 target_compile_definitions (
894894 php_config
895895 INTERFACE
896- $<$<COMPILE_LANGUAGE:ASM, C,CXX>:DMALLOC_FUNC_CHECK>
896+ $<$<COMPILE_LANGUAGE:C,CXX>:DMALLOC_FUNC_CHECK>
897897 )
898898
899899 target_link_libraries (php_config INTERFACE Dmalloc::Dmalloc)
Original file line number Diff line number Diff line change @@ -195,6 +195,15 @@ if(PHP_HAS_FFP_CONTRACT_OFF_C)
195195 )
196196endif ()
197197
198+ # Enable inline reader cache.
199+ # https://devblogs.microsoft.com/cppblog/visual-studio-2017-throughput-improvements-and-advice/
200+ if (MSVC )
201+ target_compile_options (
202+ php_config
203+ INTERFACE $<$<COMPILE_LANGUAGE:C,CXX>:/d2FuncCache1>
204+ )
205+ endif ()
206+
198207################################################################################
199208# Sanitizer flags.
200209################################################################################
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ PHP main binding.
44
55include (CheckSymbolExists)
66
7- # Compile and link properties for all targets in this directory scope.
7+ ################################################################################
8+ # Compile and link properties for all binary targets in this directory scope.
9+ ################################################################################
10+
811add_compile_definitions (ZEND_ENABLE_STATIC_TSRMLS_CACHE)
912link_libraries (PHP::config)
1013
You can’t perform that action at this time.
0 commit comments