From ecc80b3cb46e526bef64d9761b972e32e7152193 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Sep 2012 00:35:09 +0000 Subject: mkmf.rb: untabify * lib/mkmf.rb: untabify. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'lib/mkmf.rb') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index b499eeb954..07c6143af3 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -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 conftest_const = (int)(#{const}); 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 @@ SRC 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 -- cgit v1.2.3