tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: clang pickiness, bsd.sys.mk -Werror, and macros (blows up with pkgin)



Joerg Sonnenberger <joerg%britannica.bec.de@localhost> writes:

> On Sun, Sep 27, 2015 at 08:09:50PM -0400, Greg Troxel wrote:
>> With the following (not proposed to commit):
>> 
>>   --- clang.mk.~1.15.~	2015-03-08 20:24:21.000000000 -0400
>>   +++ clang.mk	2015-09-27 19:54:41.000000000 -0400
>>   @@ -67,10 +67,10 @@ PKGSRC_FORTRAN?=g95
>>    .  include "../../mk/compiler/${PKGSRC_FORTRAN}.mk"
>>    .endif
>> 
>>   -_WRAP_EXTRA_ARGS.CC+=	-Qunused-arguments
>>   -CWRAPPERS_APPEND.cc+=	-Qunused-arguments
>>   -_WRAP_EXTRA_ARGS.CXX+=	-Qunused-arguments
>>   -CWRAPPERS_APPEND.cxx+=	-Qunused-arguments
>>   +_WRAP_EXTRA_ARGS.CC+=	-Qunused-arguments -Wno-error=parentheses-equality
>>   +CWRAPPERS_APPEND.cc+=	-Qunused-arguments -Wno-error=parentheses-equality
>>   +_WRAP_EXTRA_ARGS.CXX+=	-Qunused-arguments -Wno-error=parentheses-equality
>>   +CWRAPPERS_APPEND.cxx+=	-Qunused-arguments -Wno-error=parentheses-equality
>
> Please don't do that. There are other warnings and more subtile cases
> that go wrong. IIRC ccache got a mode to rerun the full compile command
> after checking the preprocessor.

Don't worry - I specifically meant that this should not go in.   I was
only pointing out that it allowed ccache/clang to build.

Attachment: pgpKEKn0oa9Is.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index