ruby-changes:38143
From: nobu <ko1@a...>
Date: Sat, 11 Apr 2015 11:02:02 +0900 (JST)
Subject: [ruby-changes:38143] nobu:r50224 (trunk): mkmf.rb: fix syntax errors
nobu 2015-04-11 11:01:57 +0900 (Sat, 11 Apr 2015) New Revision: 50224 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50224 Log: mkmf.rb: fix syntax errors * lib/mkmf.rb (append_cppflags, append_cflags, append_ldflags): fix missing parentheses. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 50223) +++ lib/mkmf.rb (revision 50224) @@ -615,7 +615,7 @@ MSG https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L615 def append_cppflags(flags, *opts) Array(flags).each do |flag| - if checking_for "whether #{flag} is accepted as CPPFLAGS" { + if checking_for("whether #{flag} is accepted as CPPFLAGS") { try_cppflags(flag, *opts) } $CPPFLAGS << " " << flag @@ -637,7 +637,7 @@ MSG https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L637 def append_cflags(flags, *opts) Array(flags).each do |flag| - if checking_for "whether #{flag} is accepted as CFLAGS" { + if checking_for("whether #{flag} is accepted as CFLAGS") { try_cflags(flag, *opts) } $CFLAGS << " " << flag @@ -659,7 +659,7 @@ MSG https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L659 def append_ldflags(flags, *opts) Array(flags).each do |flag| - if checking_for "whether #{flag} is accepted as LDFLAGS" { + if checking_for("whether #{flag} is accepted as LDFLAGS") { try_ldflags(flag, *opts) } $LDFLAGS << " " << flag -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/