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

ruby-changes:36852

From: nobu <ko1@a...>
Date: Tue, 23 Dec 2014 22:07:43 +0900 (JST)
Subject: [ruby-changes:36852] nobu:r48933 (trunk): extconf.rb: no empty CPP

nobu	2014-12-23 22:07:39 +0900 (Tue, 23 Dec 2014)

  New Revision: 48933

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

  Log:
    extconf.rb: no empty CPP
    
    * ext/fiddle/extconf.rb: pass CPP only if necessary, should not
      make it empty.

  Modified files:
    trunk/ext/fiddle/extconf.rb
Index: ext/fiddle/extconf.rb
===================================================================
--- ext/fiddle/extconf.rb	(revision 48932)
+++ ext/fiddle/extconf.rb	(revision 48933)
@@ -65,11 +65,11 @@ begin https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extconf.rb#L65
     --enable-builddir=#{RUBY_PLATFORM}
   ]
   args << libffi.opt if libffi.opt
+  args << "CPP=#{cpp}" if cpp
   args.concat %W[
       CC=#{cc} CFLAGS=#{libffi.cflags}
       CXX=#{cxx} CXXFLAGS=#{RbConfig.expand("$(CXXFLAGS)", nowarn)}
       LD=#{ld} LDFLAGS=#{libffi.ldflags}
-      CPP=#{cpp}
   ]
 
   FileUtils.rm_f("#{libffi.include}/ffitarget.h")

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

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