Hendrik Sattler <[EMAIL PROTECTED]> writes:
> Am Freitag 14 September 2007 schrieb Goswin von Brederlow:
>> 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.
Unfortunately even restricting it to gcc it still does not work
right. Although I would say that is a bug in gcc:
% gcc -m32 -dumpmachine
x86_64-linux-gnu
-m32 selects 32bit output and that is most certainly no
x86_64-linux-gnu but should be i486-linux-gnu.
I will just have to do this in the source files and use the __ARCH__
defines set by the compiler.
MfG
Goswin
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake