tech-toolchain archive

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

Re: make -V default behavior change



On Thu, Jun 22, 2017 at 03:10:48PM +0000, David Holland wrote:
>  > Eg: I see in <bsd.own.mk> the following fragment 
>  > ...
>  > 
>  > 	.for _t in CC CPP CXX FC OBJC
>  > 	ACTIVE_${_t}=   ${AVAILABLE_COMPILER:@.c.@ ${
>  > 		!defined(UNSUPPORTED_COMPILER.${.c.}) &&
>  > 		 defined(TOOL_${_t}.${.c.}) :? ${.c.} : }@:[1]}
>  > 	SUPPORTED_${_t}=${AVAILABLE_COMPILER:Nfalse:@.c.@
>  > 		 ${ !defined(UNSUPPORTED_COMPILER.${.c.}) &&
>  > 		 defined(TOOL_${_t}-.${.c.}) :? ${.c.} : }@}
>  > 	.endfor
> 
> *gag*
> 
> The @.c.@ loop syntax should really not be allowed... the behavior of
> ordinary for loops is confusing enough.

bsd.own.mk is often included very early, making it undesirable to force
the definitions at this point. That's why it is a @@ loop and not a
for-loop.

Joerg


Home | Main Index | Thread Index | Old Index