Date: Thu, 21 Nov 2013 13:11:30 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Mark Robert Vaughan Murray <markm@FreeBSD.org> Cc: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: Duplicated WITH_*/WITHOUT_* options Message-ID: <9A9B2AFC-A96D-4B63-9ABD-40E4BAA8FD3E@FreeBSD.org> In-Reply-To: <D1B11F62-7B96-4166-96E9-4082DF5ED76A@FreeBSD.org> References: <20131119162205.GW1643@glenbarber.us> <C6.07.29861.C5EEB825@cdptpa-oedge02> <20131119231325.GA1527@glenbarber.us> <35.00.29861.FA61C825@cdptpa-oedge02> <D1B11F62-7B96-4166-96E9-4082DF5ED76A@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 21 Nov 2013, at 09:44, Mark Robert Vaughan Murray <markm@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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
iEYEARECAAYFAlKN+HsACgkQsF6jCi4glqPLygCeNC4vP5FEt7hMCQm3pMzWy2Wr
UOYAnRPVW/hJerf03CsJbY9ob7C0noaQ
=pTrf
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9A9B2AFC-A96D-4B63-9ABD-40E4BAA8FD3E>
