This commit is contained in:
Brian West
2014-02-07 13:10:08 -06:00
parent 900db14f1d
commit 3c55a90076
2 changed files with 10 additions and 4 deletions

8
libs/esl/ruby/cflags.rb Normal file
View File

@@ -0,0 +1,8 @@
require 'rbconfig'
cflags = if RUBY_VERSION =~ /1.9/ then
"-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
else
"-I#{RbConfig::CONFIG["topdir"]}"
end
puts cflags