Top Level Namespace

Defined Under Namespace

Modules: Metawork

Instance Method Summary collapse

Instance Method Details

#target_tupleObject

Returns an array containing [ARCH, VENDOR, PLATFORM [, ENVIRONMENT]]



10
11
12
13
14
15
16
17
18
19
20
# File 'ext/metawork/extconf.rb', line 10

def target_tuple
    arch = RbConfig::CONFIG['host_cpu']
    host_os = RbConfig::CONFIG['host_os']
    case host_os
    when /^linux-(.*)$/
        vendor = 'unknown'
        platform = 'linux'
        return arch, 'unknown', 'linux', $1
    end
    abort "Unsupported platform #{host_os}"
end