From d8c19c3e6e86eeeafe7b438dae8e872759bd48a6 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 6 Feb 2018 18:59:18 +0000 Subject: mjit mswin support (WIP) * win32/Makefile.sub (LIBRUBYARG_SHARED): define for MJIT because it is used in common.mk. * mjit.c (make_pch): skip temporary for mswin. * mjit.c (compile_c_to_so, init_header_filename, mjit_init): mswin support. * mjig_compile.c (mjit_compile): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit_compile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mjit_compile.c') diff --git a/mjit_compile.c b/mjit_compile.c index 3155ef2c84..69fc8947d8 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -137,6 +137,9 @@ mjit_compile(FILE *f, const struct rb_iseq_constant_body *body, const char *func status.success = TRUE; status.compiled_for_pos = ZALLOC_N(int, body->iseq_size); +#ifdef _WIN32 + fprintf(f, "__declspec(dllexport)\n"); +#endif fprintf(f, "VALUE\n%s(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp)\n{\n", funcname); fprintf(f, " VALUE *stack = reg_cfp->sp;\n"); -- cgit v1.2.3