Determine whether to build clang and its bootstrap tools the same

way. This allows a clang bootstrap to happen, even when WITHOUT_CLANG
is defined. This is a minimal version of a more extensive change which
can be MFC'd more easily. However, we have to also test to see if
we're building clang as not cc, since the bootstrap for that needs
these cross tools and it is easier to build them in just one place.

MFC after: 1 week
This commit is contained in:
Warner Losh 2014-04-13 05:21:22 +00:00
parent 01c73a3bb3
commit e8b1905131
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264395

View file

@ -1234,7 +1234,7 @@ _awk= usr.bin/awk
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
.endif
.if ${MK_CLANG} != "no"
.if ${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang" || ${MK_CLANG} != "no"
_clang_tblgen= \
lib/clang/libllvmsupport \
lib/clang/libllvmtablegen \