diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-25 07:56:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-25 07:56:03 +0000 |
commit | f4afd05260398b9a3d58f0f266905179973d3285 (patch) | |
tree | 5ffc85a020b37e9a3d071650455ab26e278126a5 /ext/extmk.rb | |
parent | a7dd0947916d84e2179b164a64da644e755a4e90 (diff) |
extmk.rb: refactor
* ext/extmk.rb: extract non-blank part without intermediate
objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-x | ext/extmk.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index d2832c5aa2..19ad057756 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -627,7 +627,7 @@ void Init_ext(void)\n{\n#$extinit} ['SETUP', $setup], ['EXTLIBS', $extlibs.join(' ')], ['EXTLDFLAGS', $extflags] ].map {|n, v| - "#{n}=#{v}" if v and !(v = v.strip).empty? + "#{n}=#{v}" if v &&= v[/\S(?:.*\S)?/] }.compact puts(*conf) $stdout.flush |