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:
bdrewery 2018-06-27 16:57:56 +00:00
parent dabae8d650
commit 9b41f30c42
2 changed files with 5 additions and 0 deletions

View File

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

View File

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