module Ryb::Helpers::Defaults

Public Class Methods

targets() click to toggle source
# File lib/ryb/helpers/defaults.rb, line 4
def self.targets
  @@targets = begin
    case RbConfig::CONFIG["host_os"]
      when /mswin|windows|mingw|cygwin/i
        ['windows']
      when /darwin/i
        ['macosx']
      when /linux/i
        ['linux']
      end
  end
end
toolchains() click to toggle source
# File lib/ryb/helpers/defaults.rb, line 17
def self.toolchains
  @@toolchains ||= {
    'windows' => 'msvc',
    'macosx' => 'clang+llvm',
    'linux' => 'gcc'
  }
end