summaryrefslogtreecommitdiff
path: root/thread_win32.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 06:53:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-20 06:53:00 +0000
commitb710785f1aaaa06bd5cd2e7a584c24aff20c9ab4 (patch)
tree0f54465ac7315f016a281e371ca90666f0d0e369 /thread_win32.c
parentd79f72521e512a91955881de33be12464b9e3e4e (diff)
add disabling MJIT features option.
* configure.ac: introduce new configure option `--enable-mjit` and `--disable-mjit`. Default is "enable". `--disable-mjit` disables all of MJIT features so that `ruby --jit` can't enable MJIT. This option affect a macro `USE_MJIT`. This change remove `--enable/disable-install-mjit-header` option. * Makefile.in: introduce the `ENABLE_MJIT` variable. * common.mk: use `ENABLE_MJIT` option. * internal.h: respect `USE_MJIT`. Same as other *.c, *.h. * test/ruby/test_jit.rb: check `ENABLE_MJIT` key of rbconfg.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index be3f614fff..d4db9e3824 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -811,6 +811,7 @@ native_set_thread_name(rb_thread_t *th)
{
}
+#if USE_MJIT
static unsigned long __stdcall
mjit_worker(void *arg)
{
@@ -833,5 +834,6 @@ rb_thread_create_mjit_thread(void (*worker_func)(void))
w32_resume_thread(thread_id);
return TRUE;
}
+#endif
#endif /* THREAD_SYSTEM_DEPENDENT_IMPLEMENTATION */