Clang: Only build needed target for bootstrap compiler.

This will disable the new LLVM_TARGET_ALL option which will only
enable the required target.

This only impacts the bootstrap compiler in WORLDTMP, not the target compiler
that will be installed.

MFC after:	2 weeks
Reviewed by:	sbruno, dim (earlier version)
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D16021
This commit is contained in:
Bryan Drewery 2018-06-27 16:57:56 +00:00
parent 631e709f2b
commit eed6d55d26
2 changed files with 5 additions and 0 deletions

View File

@ -686,6 +686,9 @@ TMAKE= \
XMAKE= ${BMAKE} \ XMAKE= ${BMAKE} \
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
MK_GDB=no MK_TESTS=no MK_GDB=no MK_TESTS=no
.if empty(.MAKEOVERRIDES:MMK_LLVM_TARGET_ALL)
XMAKE+= MK_LLVM_TARGET_ALL=no
.endif
# kernel-tools stage # kernel-tools stage
KTMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \ KTMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \

View File

@ -1,2 +1,4 @@
.\" $FreeBSD$ .\" $FreeBSD$
Set to build support for all LLVM targets. Set to build support for all LLVM targets.
This option is always applied to the bootstrap compiler for buildworld when
LLVM is used.