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
This commit is contained in:
parent
a7dd094791
commit
f4afd05260
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user