Skip to content

Commit

Permalink
Optimize cygwin scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Sep 9, 2024
1 parent 500ee96 commit 172c764
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 201 deletions.
2 changes: 2 additions & 0 deletions TSRM/TSRM.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ TSRM_API void *tsrm_get_ls_cache(void)
return tsrm_tls_get();
}/*}}}*/

#ifdef HAVE_JIT
/* Returns offset of tsrm_ls_cache slot from Thread Control Block address */
TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
{/*{{{*/
Expand Down Expand Up @@ -795,6 +796,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
return 0;
#endif
}/*}}}*/
#endif

TSRM_API uint8_t tsrm_is_main_thread(void)
{/*{{{*/
Expand Down
2 changes: 2 additions & 0 deletions TSRM/TSRM.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread
TSRM_API void *tsrm_set_shutdown_handler(tsrm_shutdown_func_t shutdown_handler);

TSRM_API void *tsrm_get_ls_cache(void);
#ifdef HAVE_JIT
TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void);
#endif
TSRM_API uint8_t tsrm_is_main_thread(void);
TSRM_API uint8_t tsrm_is_shutdown(void);
TSRM_API const char *tsrm_api_name(void);
Expand Down
198 changes: 0 additions & 198 deletions main/TSRM.h

This file was deleted.

5 changes: 2 additions & 3 deletions sapi/scripts/cygwin/cygwin-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@ test -f Makefile && make clean
--with-imagick \
--with-yaml \
--with-readline

# --enable-opcache \
# --disable-opcache-jit
--enable-opcache \
--disable-opcache-jit

0 comments on commit 172c764

Please sign in to comment.