ruby-changes:26641
From: yugui <ko1@a...>
Date: Fri, 4 Jan 2013 18:05:09 +0900 (JST)
Subject: [ruby-changes:26641] yugui:r38692 (trunk): * common.mk (yes-btest): btest depends on also $(arch)-fake.rb and
yugui 2013-01-04 18:04:58 +0900 (Fri, 04 Jan 2013) New Revision: 38692 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38692 Log: * common.mk (yes-btest): btest depends on also $(arch)-fake.rb and rbconfig.rb on building for NativeClient. * Makefile.in (fake): Avoid generating $(arch)-fake.rb unless cross compiling. * configure.in (CROSS_COMPILING): New substitution. Modified files: trunk/ChangeLog trunk/Makefile.in trunk/common.mk trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 38691) +++ configure.in (revision 38692) @@ -2525,6 +2525,7 @@ if test x"$cross_compiling" = xyes; then https://github.com/ruby/ruby/blob/trunk/configure.in#L2525 RUNRUBY='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`' XRUBY='$(MINIRUBY)' TEST_RUNNABLE=no + CROSS_COMPILING=yes if test "$host_os" = "nacl"; then if test "$build_cpu" = "$host_cpu" || test "${nacl_cv_cpu_nick}" = "x86" -a "$host_cpu" = "i686"; then @@ -2546,8 +2547,10 @@ else https://github.com/ruby/ruby/blob/trunk/configure.in#L2547 RUNRUBY='$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=$(EXTOUT)' XRUBY='$(RUNRUBY)' TEST_RUNNABLE=yes + CROSS_COMPILING=no fi AC_SUBST(TEST_RUNNABLE) +AC_SUBST(CROSS_COMPILING) AC_SUBST(MINIRUBY) AC_SUBST(BTESTRUBY) AC_SUBST(PREP) Index: ChangeLog =================================================================== --- ChangeLog (revision 38691) +++ ChangeLog (revision 38692) @@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jan 4 17:58:16 2013 Yuki Yugui Sonoda <yugui@y...> + + * common.mk (yes-btest): btest depends on also $(arch)-fake.rb and + rbconfig.rb on building for NativeClient. + + * Makefile.in (fake): Avoid generating $(arch)-fake.rb unless cross + compiling. + + * configure.in (CROSS_COMPILING): New substitution. + Fri Jan 4 16:26:45 2013 Eric Hodel <drbrain@s...> * lib/rubygems/doctor.rb: Process directories in order in case the Index: common.mk =================================================================== --- common.mk (revision 38691) +++ common.mk (revision 38692) @@ -477,7 +477,7 @@ check-ruby: test test-ruby https://github.com/ruby/ruby/blob/trunk/common.mk#L477 btest: $(TEST_RUNNABLE)-btest no-btest: PHONY -yes-btest: miniruby$(EXEEXT) PHONY +yes-btest: fake miniruby$(EXEEXT) PHONY $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(BTESTRUBY)" $(OPTS) $(TESTOPTS) btest-ruby: $(TEST_RUNNABLE)-btest-ruby Index: Makefile.in =================================================================== --- Makefile.in (revision 38691) +++ Makefile.in (revision 38692) @@ -26,6 +26,7 @@ AUTOCONF = autoconf https://github.com/ruby/ruby/blob/trunk/Makefile.in#L26 MKFILES = @MAKEFILES@ BASERUBY = @BASERUBY@ TEST_RUNNABLE = @TEST_RUNNABLE@ +CROSS_COMPILING = @CROSS_COMPILING@ DOXYGEN = @DOXYGEN@ prefix = @prefix@ @@ -221,8 +222,9 @@ $(LIBRUBY_SO): https://github.com/ruby/ruby/blob/trunk/Makefile.in#L222 @-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link if File.exist? link; \ File.symlink "$(LIBRUBY_SO)", link}' \ $(LIBRUBY_ALIASES) || true - -fake: $(arch)-fake.rb +fake: $(CROSS_COMPILING)-fake +yes-fake: $(arch)-fake.rb $(RBCONFIG) PHONY +no-fake: PHONY $(arch)-fake.rb: config.status $(srcdir)/template/fake.rb.in @./config.status --file=$@:$(srcdir)/template/fake.rb.in @chmod +x $@ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/