[前][次][番号順一覧][スレッド一覧]

ruby-changes:39708

From: nobu <ko1@a...>
Date: Tue, 8 Sep 2015 00:35:50 +0900 (JST)
Subject: [ruby-changes:39708] nobu:r51789 (trunk): configure.in: BOOTSTRAPRUBY version

nobu	2015-09-08 00:35:26 +0900 (Tue, 08 Sep 2015)

  New Revision: 51789

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

  Log:
    configure.in: BOOTSTRAPRUBY version
    
    * configure.in (BOOTSTRAPRUBY): avoid too old versions.  current
      fileutils.rb does not work with 1.8 or older, because of the
      return values of Module#singleton_methods and so on.

  Modified files:
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 51788)
+++ configure.in	(revision 51789)
@@ -3435,7 +3435,9 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L3435
   RUNRUBY='$(RUNRUBY_COMMAND) --'
   XRUBY='$(RUNRUBY)'
   BOOTSTRAPRUBY='$(MINIRUBY)'
-  test x"${HAVE_BASERUBY}" = xyes && BOOTSTRAPRUBY='$(BASERUBY)'
+  test x"${HAVE_BASERUBY}" = xyes &&
+  ${BASERUBY} -e 'exit module A;def foo;end;instance_methods;end.include?(:foo)' &&
+  BOOTSTRAPRUBY='$(BASERUBY)'
   TEST_RUNNABLE=yes
   CROSS_COMPILING=no
 fi

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]