diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 05:57:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-03 05:57:30 +0000 |
commit | 875544d8c88f33c4e27bd89802fc4ffbb6b63cee (patch) | |
tree | a0f148863ba2a28f87aca4a3a3586e42258fa185 /ext/extmk.rb | |
parent | 2711fde3db1dabc3bdaab7d499e7a06d386be843 (diff) | |
download | ruby-875544d8c88f33c4e27bd89802fc4ffbb6b63cee.tar.gz ruby-875544d8c88f33c4e27bd89802fc4ffbb6b63cee.tar.xz ruby-875544d8c88f33c4e27bd89802fc4ffbb6b63cee.zip |
* ext/extmk.rb (extmake): removes object files no longer used.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r-- | ext/extmk.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 69002236c..a315435a0 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -138,6 +138,7 @@ def extmake(target) 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 @@ def extmake(target) 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 |