[ruby-cvs:71311] k0kubun:r64219 (trunk): win32/Makefile.sub: escape `=` in MJIT cflags

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Wed Aug 8 00:14:48 JST 2018


k0kubun	2018-08-08 00:14:48 +0900 (Wed, 08 Aug 2018)

  New Revision: 64219

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

  Log:
    win32/Makefile.sub: escape `=` in MJIT cflags
    
    Since `=` is considered as delimiter in `()` of `for`, having
    `-DRUBY_DEVEL=1` in CPPFLAGS had resulted in:
    
     #define MJIT_OPTFLAGS "-DMJIT_HEADER", \
       "-DRUBY_DEVEL", \
       "1", \
    
    Even escaped `for %I in (... -DRUBY_DEVEL^=1)` does not yield an
    expected result. This commit is a workaround for this issue.
    
    After this commit, mjit_config.h will have:
    
     #define MJIT_OPTFLAGS "-DMJIT_HEADER", \
       "-DRUBY_DEVEL" MJIT_CONFIG_ESCAPED_EQ "1", \
    
    And C macro resolves MJIT_CONFIG_ESCAPED_EQ to "=".

  Modified files:
    trunk/win32/Makefile.sub


More information about the ruby-cvs mailing list