From eed6d55d264e21fb8877a7480aa774478d8b12cd Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Wed, 27 Jun 2018 16:57:56 +0000 Subject: [PATCH] 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 --- Makefile.inc1 | 3 +++ tools/build/options/WITH_LLVM_TARGET_ALL | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 95e660bee56..0c693ae0d5b 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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" \ diff --git a/tools/build/options/WITH_LLVM_TARGET_ALL b/tools/build/options/WITH_LLVM_TARGET_ALL index 0270c03bc58..c3fb23b3510 100644 --- a/tools/build/options/WITH_LLVM_TARGET_ALL +++ b/tools/build/options/WITH_LLVM_TARGET_ALL @@ -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.