[ruby-cvs:69536] k0kubun:r62355 (trunk): common.mk: define MJIT_HEADER earlier

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Sun Feb 11 13:20:33 JST 2018


k0kubun	2018-02-11 13:20:32 +0900 (Sun, 11 Feb 2018)

  New Revision: 62355

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62355

  Log:
    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
    ```

  Modified files:
    trunk/common.mk
    trunk/gc.c


More information about the ruby-cvs mailing list