Hendrik Sattler <[EMAIL PROTECTED]> writes: > Am Freitag 14 September 2007 schrieb Goswin von Brederlow: >> "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. >> >> On the other hand using "dpkg-architecture" is way to debian specific. >> >> Something inbetween is to ask the gcc. But then you are gcc >> specific (Good enough for me). > > But isn't that exactly what you want? You want to know what you current > compiler compiles for, not what architecture you are currently using. When I > run a i586 kernel but gcc produces code for i486, then i486 is wanted.
But if the user wants to use the Intel C compiler (icc) the test will probably fail due to differences in options or output. MfG Goswin _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake