[ruby-cvs:70594] k0kubun:r63503 (trunk): spec/ruby: fix RUBY_DESCRIPTION check with JIT enabled

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Thu May 24 23:32:05 JST 2018


k0kubun	2018-05-24 23:32:05 +0900 (Thu, 24 May 2018)

  New Revision: 63503

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

  Log:
    spec/ruby: fix RUBY_DESCRIPTION check with JIT enabled
    
    `make test-spec` adds `-r./$(arch)-fake` to pass header options.
    But the $(arch)-fake.rb unexpectedly modifies RUBY_DESCRIPTION and it
    always drops +JIT from it since the fake.rb is built with BOOTSTRAPRUBY,
    which can be miniruby. miniruby can't find MJIT header and thus
    mjit_init_p is always FALSE.
    
    So, to pass `make test-spec` with JIT enabled, we can't use
    RUBY_DESCRIPTION.

  Modified files:
    trunk/spec/ruby/command_line/dash_v_spec.rb
    trunk/spec/ruby/command_line/rubyopt_spec.rb


More information about the ruby-cvs mailing list