[CMake] Hi and some newbie questions
Goswin von Brederlow
brederlo at informatik.uni-tuebingen.de
Fri Sep 14 19:42:21 EDT 2007
Hendrik Sattler <post at hendrik-sattler.de> writes:
> Am Freitag 14 September 2007 schrieb Goswin von Brederlow:
>> "wim van hoydonck" <wim.van.hoydonck at gmail.com> 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
More information about the CMake
mailing list