aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 04:20:32 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-11 04:20:32 +0000
commit6ccbbae55eaabc02463dc45d9916a32b93cbb423 (patch)
tree47f4f8e53ff8f8b09c1e68975e20ab43a409b7e3 /gc.c
parentba30c0c9302600b78dd4e123c654c3819fc007f3 (diff)
downloadruby-6ccbbae55eaabc02463dc45d9916a32b93cbb423.tar.gz
common.mk: define MJIT_HEADER earlier
so that other predefined macros won't be removed by `MJITHeader.remove_predefined_macros!`. Currently macro like -DVM_CHECK_MODE=2 is removed when it's passed in configure. But it is needed during JIT compilation. gc.c: export rb_obj_info to let JIT succeed with VM_CHECK_MODE=2. ``` MJIT warning: failure in loading code from '/tmp/_ruby_mjit_p15631u0.so': /tmp/_ruby_mjit_p15631u0.so: undefined symbol: rb_obj_info ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index be0dd701ff..a1e6bc4bc2 100644
--- a/gc.c
+++ b/gc.c
@@ -9452,7 +9452,7 @@ obj_info(VALUE obj)
}
#endif
-const char *
+MJIT_FUNC_EXPORTED const char *
rb_obj_info(VALUE obj)
{
if (!rb_special_const_p(obj)) {