Parent

Methods

CCompiler

Attributes

output_type[RW]
path[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/makeconf/compiler.rb, line 369
def initialize(options = {})
  @search_list = options.has_key?(:search) ? options[:search] : [ 'cc', 'gcc', 'clang', 'cl.exe']
  @search_list = [ @search_list ] unless @search_list.kind_of?(Array)
  @output_type = nil
  super('C', '.c')
  printf "checking for a C compiler.. "
  self.path = search(@search_list)
end

Public Instance Methods

is_mingw?() click to toggle source

Returns true if the compiler is MinGW

# File lib/makeconf/compiler.rb, line 379
def is_mingw?
  @path =~ /mingw/        # Kludge
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.