summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 18:59:18 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-06 18:59:18 (GMT)
commitd8c19c3e6e86eeeafe7b438dae8e872759bd48a6 (patch)
treed17e9f8ed6901122ff5946f90a94606230f77f88 /mjit_compile.c
parent36991485d4cd2f184d71daa14af301e64f86fdf4 (diff)
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
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index 3155ef2..69fc894 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");