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

ruby-changes:29734

From: naruse <ko1@a...>
Date: Fri, 5 Jul 2013 09:55:53 +0900 (JST)
Subject: [ruby-changes:29734] naruse:r41787 (trunk): * lib/mkmf.rb (CONFIG['CPPOUTFILE']): fix r41769; CONFIG['CPPOUTFILE']

naruse	2013-07-05 09:54:14 +0900 (Fri, 05 Jul 2013)

  New Revision: 41787

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

  Log:
    * lib/mkmf.rb (CONFIG['CPPOUTFILE']): fix r41769; CONFIG['CPPOUTFILE']
      may be nil.

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41786)
+++ ChangeLog	(revision 41787)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul  5 09:53:15 2013  NARUSE, Yui  <naruse@r...>
+
+	* lib/mkmf.rb (CONFIG['CPPOUTFILE']): fix r41769; CONFIG['CPPOUTFILE']
+	  may be nil.
+
 Fri Jul  5 05:39:53 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (BARY_MUL1): Renamed from BARY_MUL.
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 41786)
+++ lib/mkmf.rb	(revision 41787)
@@ -251,7 +251,7 @@ module MakeMakefile https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L251
 
   OUTFLAG = CONFIG['OUTFLAG']
   COUTFLAG = CONFIG['COUTFLAG']
-  CPPOUTFILE = CONFIG['CPPOUTFILE'].sub(/\bconftest\b/, CONFTEST)
+  CPPOUTFILE = CONFIG['CPPOUTFILE'] ? CONFIG['CPPOUTFILE'].sub(/\bconftest\b/, CONFTEST) : nil
 
   def rm_f(*files)
     opt = (Hash === files.last ? [files.pop] : [])

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

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