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

ruby-changes:11126

From: nobu <ko1@a...>
Date: Tue, 3 Mar 2009 16:31:53 +0900 (JST)
Subject: [ruby-changes:11126] Ruby:r22726 (ruby_1_8): * ext/extmk.rb (extmake): removes object files no longer used.

nobu	2009-03-03 16:31:46 +0900 (Tue, 03 Mar 2009)

  New Revision: 22726

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

  Log:
    * ext/extmk.rb (extmake): removes object files no longer used.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/extmk.rb

Index: ruby_1_8/ext/extmk.rb
===================================================================
--- ruby_1_8/ext/extmk.rb	(revision 22725)
+++ ruby_1_8/ext/extmk.rb	(revision 22726)
@@ -146,6 +146,7 @@
       begin
 	$extconf_h = nil
 	ok &&= extract_makefile(makefile)
+	old_objs = $objs
 	conf = ["#{$srcdir}/makefile.rb", "#{$srcdir}/extconf.rb"].find {|f| File.exist?(f)}
 	if (($extconf_h && !File.exist?($extconf_h)) ||
 	    !(t = modified?(makefile, MTIMES)) ||
@@ -186,6 +187,7 @@
       args += ["static"] unless $clean
       $extlist.push [$static, $target, File.basename($target), $preload]
     end
+    FileUtils.rm_f($objs - old_objs)
     unless system($make, *args)
       $ignore or $continue or return false
     end
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 22725)
+++ ruby_1_8/ChangeLog	(revision 22726)
@@ -1,3 +1,7 @@
+Tue Mar  3 16:31:43 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/extmk.rb (extmake): removes object files no longer used.
+
 Tue Mar  3 16:25:43 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and

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

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