ruby-changes:24952
From: nobu <ko1@a...>
Date: Fri, 21 Sep 2012 09:36:24 +0900 (JST)
Subject: [ruby-changes:24952] nobu:r37003 (trunk): mkmf.rb: untabify
nobu 2012-09-21 09:35:09 +0900 (Fri, 21 Sep 2012) New Revision: 37003 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37003 Log: mkmf.rb: untabify * lib/mkmf.rb: untabify. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 37002) +++ lib/mkmf.rb (revision 37003) @@ -1,4 +1,3 @@ -# -*- indent-tabs-mode: t -*- # module to create Makefile for extension modules # invoke like: ruby -r mkmf extconf.rb @@ -639,13 +638,13 @@ int main() {printf("%d\\n", conftest_const); return 0;} } begin - if try_link0(src, opt, &b) - xpopen("./conftest") do |f| - return Integer(f.gets) - end - end + if try_link0(src, opt, &b) + xpopen("./conftest") do |f| + return Integer(f.gets) + end + end ensure - MakeMakefile.rm_f "conftest*" + MakeMakefile.rm_f "conftest*" end end nil @@ -1025,9 +1024,9 @@ opt = " -framework #{fw}" if try_link(src, "-ObjC#{opt}", &b) $defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp)) - # TODO: non-worse way than this hack, to get rid of separating - # option and its argument. - $LDFLAGS << " -ObjC" unless /(\A|\s)-ObjC(\s|\z)/ =~ $LDFLAGS + # TODO: non-worse way than this hack, to get rid of separating + # option and its argument. + $LDFLAGS << " -ObjC" unless /(\A|\s)-ObjC(\s|\z)/ =~ $LDFLAGS $LDFLAGS << opt true else -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/