class Object

Constants

CONFTEST_C
IS_DARWIN
IS_MINGW
IS_MSWIN

Public Class Methods

[](name) click to toggle source
# File lib/mkmf-rice.rb, line 47
def self.[](name)
  @lang.fetch(name)
end
[]=(name, mod) click to toggle source
# File lib/mkmf-rice.rb, line 51
def self.[]=(name, mod)
  @lang[name] = mod
end

Public Instance Methods

cc_config(opt="") click to toggle source
# File lib/mkmf-rice.rb, line 21
def cc_config(opt="")
  conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote,
                                'arch_hdrdir' => $arch_hdrdir.quote,
                                'top_srcdir' => $top_srcdir.quote)
  conf
end
cpp_command(outfile, opt="") click to toggle source
# File lib/mkmf-rice.rb, line 95
def cpp_command(outfile, opt="")
  conf = cc_config(opt)
  if $universal and (arch_flag = conf['ARCH_FLAG']) and !arch_flag.empty?
    conf['ARCH_FLAG'] = arch_flag.gsub(/(?:\G|\s)-arch\s+\S+/, '')
  end
  RbConfig::expand("$(CXX) -E #$INCFLAGS #$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_CXX} #{outfile}",
                   conf)
end