[cfe-dev] Patch to quiet some options

Daniel Dunbar daniel at zuster.org
Mon Aug 17 22:59:35 PDT 2009


On Sat, Aug 15, 2009 at 12:31 PM, Eli Friedman<eli.friedman at gmail.com> wrote:
> On Sat, Aug 15, 2009 at 5:16 AM, David Chisnall<csdavec at swansea.ac.uk> wrote:
>> Hi,
>>
>> This patch stops the driver complaining that -pthread is only used when
>> linking (some platforms use it when compiling to set some #defines, so a lot
>> of Makefiles pass it at all stages of compilation).
>>
>> It also adds -Wno-import, which is silently ignored.  Clang defaults to the
>> behaviour that GCC exhibits when -Wno-import is specified (not warning that
>> #import is deprecated).
>
> I fixed -Wno-import in a different way; I'll let Daniel comment on the
> -pthread bit.

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.

 - Daniel




More information about the cfe-dev mailing list