Top Level Namespace
Defined Under Namespace
Modules: Metawork
Instance Method Summary collapse
-
#target_tuple ⇒ Object
Returns an array containing [ARCH, VENDOR, PLATFORM [, ENVIRONMENT]].
Instance Method Details
#target_tuple ⇒ Object
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 |