mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix ZTS OPcache build on Cygwin
`configure --enable-opcache --disable-opcache-jit --enable-zts` won't compile on Cygwin. We fix this, but that does not imply that OPcache properly works in this environment, let alone that JIT would be functional. Closes GH-16920.
This commit is contained in:
parent
b0b876d076
commit
32ff46b633
2 changed files with 5 additions and 2 deletions
3
NEWS
3
NEWS
|
@ -20,6 +20,9 @@ PHP NEWS
|
|||
- Intl:
|
||||
. Bumped ICU requirement to ICU >= 57.1. (cmb)
|
||||
|
||||
- OPcache:
|
||||
. Fixed ZTS OPcache build on Cygwin. (cmb)
|
||||
|
||||
- Output:
|
||||
. Fixed calculation of aligned buffer size. (cmb)
|
||||
|
||||
|
|
|
@ -778,7 +778,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
|
|||
return 0;
|
||||
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
|
||||
!defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__) && \
|
||||
!defined(__HAIKU__)
|
||||
!defined(__HAIKU__) && !defined(__CYGWIN__)
|
||||
size_t ret;
|
||||
|
||||
asm ("movq _tsrm_ls_cache@gottpoff(%%rip),%0"
|
||||
|
@ -786,7 +786,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
|
|||
return ret;
|
||||
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
|
||||
!defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__) && \
|
||||
!defined(__HAIKU__)
|
||||
!defined(__HAIKU__) && !defined(__CYGWIN__)
|
||||
size_t ret;
|
||||
|
||||
asm ("leal _tsrm_ls_cache@ntpoff,%0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue