diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-04 03:54:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-04 03:54:29 +0000 |
commit | 2d1b2f0ecf11a61b2f1f95377e81b661870bf847 (patch) | |
tree | c6d0637f07be590076266ff8a7bf64a3ce49d6b5 /lib | |
parent | 50226fb61cb10c5be9e2745e7b1a29228987a4ee (diff) | |
download | ruby-2d1b2f0ecf11a61b2f1f95377e81b661870bf847.tar.gz |
mkmf.rb: remove unnecessary variables
* lib/mkmf.rb (configuration): remove unnecessary variables,
top_srcdir is defined above, builddir is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 9e700fb546..6a4c3c8337 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1923,9 +1923,9 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])} end CONFIG.each do |key, var| next if /^abs_/ =~ key - next if /^(?:src|top|hdr)dir$/ =~ key + next if /^(?:src|top(?:_src)?|build|hdr)dir$/ =~ key next unless /dir$/ =~ key - mk << "#{key} = #{/^(?:top_src|build)dir$/ =~ key ? var : with_destdir(var)}\n" + mk << "#{key} = #{with_destdir(var)}\n" end if !$extmk and !$configure_args.has_key?('--ruby') and sep = config_string('BUILD_FILE_SEPARATOR') |