Dizzy <[EMAIL PROTECTED]> writes:

> On Friday 14 September 2007 20:08:13 Goswin von Brederlow wrote:
>> "wim van hoydonck" <[EMAIL PROTECTED]> writes:
>> > On a Unix-like OS, you can execute "uname -m" to get the machine
>> > architecture (but this is probably not really portable to M$...):
>>
>> Not even portable across systems of the same architecture nor
>> accurate. On IA32 (x86) you want to compile for i486 but uname will
>> say anything from i486 to i686 and even x86_64 given a 64bit kernel.
>
> So you could check it returns one of "i386", "i486", etc whatever you know 
> makes the x86 platform (and no I don't believe it returns "x86-64" on a 
> IA32). When finding a match you know it's x86.

I know it does. Seen it often enough in the past.

Uname gives you the architecture of the cpu and when running a 64bit
kernel that is x86_64.

MfG
        Goswin
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to