[Swan-dev] "not rocket science" -- master that doesn't fail

Paul Wouters paul at nohats.ca
Wed Jan 21 20:14:21 EET 2015


On Wed, 21 Jan 2015, Andrew Cagney wrote:

> It's as much about !@(*&$)( make as about this make system.  For instance:
>   WERROR=-Werror
>   WERROR+= -Wall -Wextra -Wformat ...
> doesn't help as I can't remove one of the appended flags.  This leads
> to conventions such as:
>  WERROR_CFLAGS = -Wall -Wextra -Wformat ... $(WERROR)
>  CFLAGS = ... $(WERROR_CFLAGS) ...
> or, more like automake, define a separate LSW_CFLAGS and .c.o rule,
> and leave CFLAGS free for appending options:
> LSW_CFLAGS = $(WERROR_CFLAGS) ... $(CFLAGS)
> .c.o:
>    $(CC) $(LSW_CFLAGS) ...

We do. It is called USERCOMPILE= ?

Paul


More information about the Swan-dev mailing list