summaryrefslogtreecommitdiff
path: root/ext/fiddle
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 13:07:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-23 13:07:39 +0000
commit132415bf9ea534c900e1f066ad38fe8fe3b218e1 (patch)
tree2fe61bfad027c7472cd11fcd859a728a5ae04fe1 /ext/fiddle
parent5b6fc3f0060868fd4645a5e6f56fc19087c3e2a0 (diff)
extconf.rb: no empty CPP
* ext/fiddle/extconf.rb: pass CPP only if necessary, should not make it empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle')
-rw-r--r--ext/fiddle/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 1333bf5..3b885d2 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -65,11 +65,11 @@ begin
--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")