[前][次][番号順一覧][スレッド一覧]

ruby-changes:23050

From: nobu <ko1@a...>
Date: Thu, 22 Mar 2012 11:17:34 +0900 (JST)
Subject: [ruby-changes:23050] nobu:r35100 (trunk): remove conftest files

nobu	2012-03-22 11:17:26 +0900 (Thu, 22 Mar 2012)

  New Revision: 35100

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35100

  Log:
    remove conftest files
    
    * lib/mkmf.rb (try_constant): remove conftest files.

  Modified files:
    trunk/lib/mkmf.rb

Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 35099)
+++ lib/mkmf.rb	(revision 35100)
@@ -631,10 +631,14 @@
 int conftest_const = (int)(#{const});
 int main() {printf("%d\\n", conftest_const); return 0;}
 }
-      if try_link0(src, opt, &b)
-        xpopen("./conftest") do |f|
-          return Integer(f.gets)
-        end
+      begin
+	if try_link0(src, opt, &b)
+	  xpopen("./conftest") do |f|
+	    return Integer(f.gets)
+	  end
+	end
+      ensure
+	MakeMakefile.rm_f "conftest*"
       end
     end
     nil

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]