Walton Hoops wrote:
> On 1/15/2010 9:59 AM, IƱaki Baz Castillo wrote:
>>> In my server RbConfig::CONFIG['host_os'] = "linux-gnu" so finally it ends
>>>    if 1.size == 8
>>
>>
>>
>>    
> submit a bug! http://github.com/rdp/os
> 
> My main concern with that though:
> Would RbConfig::CONFIG['host_cpu'] return "x86_64" if I'm running 32-bit
> Linux on a 64-bit CPU?

Not on this machine
cat /proc/cpuinfo | grep lm

flags    : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat 
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc 
arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 
xtpr pdcm lahf_lm tpr_shadow
flags    : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat 
pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc 
arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 
xtpr pdcm lahf_lm tpr_shadow

uname -a

Linux xxxxxxx 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 
2009 i686 GNU/Linux

ruby -e "require 'rbconfig'; p(Config::CONFIG['host_cpu'])"

"i486"


Mac
-- 
Posted via http://www.ruby-forum.com/.