Luca Barbato <[email protected]> writes:

> On 12/4/12 1:17 AM, Mans Rullgard wrote:
>> Probe for the toolchain default architecture version if no --cpu flag
>> is present or an unknown cpu is specified.  Works with gcc and armcc.
>>
>> This allows configuring based on the arch version even if it is not
>> explicitly specified to configure.  It also causes an explicit -march
>> flag to be added to CFLAGS and ASFLAGS, which in turn lets us do
>> proper instruction set tests with the assembler.
>>
>
> Sounds ok, it won't work with clang I take.

Works with clang too, but on a second look, it needs a few more tweaks.
I'll send a revised patch later.

Unfortunately gcc does not document the possible macros to test so it's
matter of guessing values to flush them all out.  Or reading the gcc
source code I suppose.

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to