[cfe-dev] Patch to quiet some options

Daniel Dunbar daniel at zuster.org
Mon Aug 31 22:54:47 PDT 2009


On Mon, Aug 31, 2009 at 4:01 PM, David Chisnall<csdavec at swansea.ac.uk> wrote:
> On 18 Aug 2009, at 06:59, Daniel Dunbar wrote:
>
>> I think the right fix is to pass -pthread to clang-cc since it may
>> change the language (depending on the target?). This will have the
>> side effect of silencing the warning.
>
> The attached diff passes -pthread on to clang-cc, which then ignores it.
>  When someone comes to add support for platforms like HP-UX where it
> actually does something there is now a place for them to do so.  On
> platforms where it is silently ignored by GCC (I think that includes
> everything we support so far), it now doesn't issue an unrecognised argument
> warning.

Ok, but, might as well add the language option and preprocessor define
while we are at it?

 - Daniel




More information about the cfe-dev mailing list