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)



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.

Joerg


Home | Main Index | Thread Index | Old Index