ruby-changes:11117
From: nobu <ko1@a...>
Date: Tue, 3 Mar 2009 15:01:55 +0900 (JST)
Subject: [ruby-changes:11117] Ruby:r22716 (trunk): * ext/extmk.rb (extmake): removes object files no longer used.
nobu 2009-03-03 14:57:30 +0900 (Tue, 03 Mar 2009) New Revision: 22716 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22716 Log: * ext/extmk.rb (extmake): removes object files no longer used. Modified files: trunk/ChangeLog trunk/ext/extmk.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 22715) +++ ChangeLog (revision 22716) @@ -1,7 +1,9 @@ -Tue Mar 3 14:53:16 2009 Nobuyoshi Nakada <nobu@r...> +Tue Mar 3 14:57:28 2009 Nobuyoshi Nakada <nobu@r...> * common.mk (main): passes $(MAKE) to mkmain_cmd + * ext/extmk.rb (extmake): removes object files no longer used. + * ext/extmk.rb (command_output): uses arguments to invoke make. Tue Mar 3 01:56:03 2009 Tanaka Akira <akr@f...> Index: ext/extmk.rb =================================================================== --- ext/extmk.rb (revision 22715) +++ ext/extmk.rb (revision 22716) @@ -138,6 +138,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)) || @@ -178,6 +179,7 @@ args += ["static"] unless $clean $extlist.push [$static, $target, File.basename($target), $preload] end + FileUtils.rm_f($objs.split - old_objs) unless system($make, *args) $ignore or $continue or return false end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/