Duplicated WITH_*/WITHOUT_* options

Dimitry Andric dim at FreeBSD.org
Thu Nov 21 12:11:50 UTC 2013


On 21 Nov 2013, at 09:44, Mark Robert Vaughan Murray <markm at FreeBSD.org> wrote:
> I noticed we have some duplicated WITH_*/WITHOUT_* options; presumably this is an oversight?
> 
> [graveyard] /usr/src/tools/build/options 08:37 am # for i in WITH_* ; do if [ -e WITHOUT_${i##WITH_} ] ; then echo WITHOUT_${i##WITH_} ${i} ; fi; done
> 
> WITHOUT_CLANG WITH_CLANG
> WITHOUT_CLANG_FULL WITH_CLANG_FULL
> WITHOUT_CLANG_IS_CC WITH_CLANG_IS_CC
> WITHOUT_FDT WITH_FDT
> WITHOUT_GCC WITH_GCC
> WITHOUT_GNUCXX WITH_GNUCXX
> WITHOUT_LIBCPLUSPLUS WITH_LIBCPLUSPLUS
> WITHOUT_NAND WITH_NAND
> WITHOUT_TESTS WITH_TESTS
> 
> As its not all that obvious which one “wins”, can this be cleaned up? I don’t mind doing the work if there is a somewhat foolproof way of doing so.

These duplicated settings are not oversights, just artifacts of how
bsd.own.mk works.  The defaults are simply different for different
arches, e.g. WITH_CLANG is the default for x86, powerpc and LE arm, but
WITHOUT_CLANG is the default for other arches.  Similar for the other
settings.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20131121/08a519e2/attachment.sig>


More information about the freebsd-current mailing list