diff options
| author | takano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-26 02:10:36 +0000 |
|---|---|---|
| committer | takano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-26 02:10:36 +0000 |
| commit | 29de66230d7a310c777e12d8ffdcf9b030c35e42 (patch) | |
| tree | df3b68c06efeaf8091cfad6a674a7dcbc6380edd | |
| parent | a8d5fcc8ea1ff0eca56c248f2402e336c0c22a48 (diff) | |
| download | ruby-29de66230d7a310c777e12d8ffdcf9b030c35e42.tar.gz ruby-29de66230d7a310c777e12d8ffdcf9b030c35e42.tar.xz ruby-29de66230d7a310c777e12d8ffdcf9b030c35e42.zip | |
Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
* lib/mkmf.rb: use map! to replace strings in $objs array.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | lib/mkmf.rb | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk> + + * lib/mkmf.rb: use map! to replace strings in $objs array. + Tue May 26 05:39:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * include/ruby/ruby.h (FilePathValue): prevent from GC. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 427938d8e..4612e30e4 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1654,8 +1654,8 @@ def create_makefile(target, srcprefix = nil) srcs = $objs.collect {|o| o.sub(/\.o\z/, '.c')} end $srcs = srcs - for i in $objs - i = i.sub(/\.o\z/, ".#{$OBJEXT}") + $objs.map! do |obj| + obj.sub(/\.o\z/, ".#{$OBJEXT}") end target = nil if $objs.empty? |
