[ruby-cvs:69419] k0kubun:r62238 (trunk): mjit.c: determine prefix of MJIT header at runtime

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Tue Feb 6 01:51:12 JST 2018


k0kubun	2018-02-06 01:51:12 +0900 (Tue, 06 Feb 2018)

  New Revision: 62238

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

  Log:
    mjit.c: determine prefix of MJIT header at runtime
    
    so that MJIT can work if Ruby is distributed as prebuilt binary.
    
    Now mjit_init() depends on the internal const TMP_RUBY_PREFIX which is
    only available after ruby_init_loadpath_safe() (L1608) and before
    ruby_init_prelude() (L1681). So the place of mjit_init() is moved.
    
    Makefile.in: Removed static prefix from MJIT_HEADER_ISNTALL_DIR macro.
    And this removes the unused LIBRUBY_LIBDIR macro as well.
    win32/Makefile.sub: ditto.
    
    Patch by: Lars Kanis <lars at greiz-reinsdorf.de>
    [Bug #14445]

  Modified files:
    trunk/Makefile.in
    trunk/mjit.c
    trunk/ruby.c
    trunk/win32/Makefile.sub


More information about the ruby-cvs mailing list