cflags.rb 320 B

12345678
  1. require 'rbconfig'
  2. cflags = if RUBY_VERSION =~ /1.9/ then
  3. "-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
  4. else
  5. "-I#{RbConfig::CONFIG["topdir"]} -I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
  6. end
  7. puts cflags