Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2018 16:57:56 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335707 - in head: . tools/build/options
Message-ID:  <201806271657.w5RGvupg072943@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Wed Jun 27 16:57:56 2018
New Revision: 335707
URL: https://svnweb.freebsd.org/changeset/base/335707

Log:
  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

Modified:
  head/Makefile.inc1
  head/tools/build/options/WITH_LLVM_TARGET_ALL

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Wed Jun 27 16:57:51 2018	(r335706)
+++ head/Makefile.inc1	Wed Jun 27 16:57:56 2018	(r335707)
@@ -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" \

Modified: head/tools/build/options/WITH_LLVM_TARGET_ALL
==============================================================================
--- head/tools/build/options/WITH_LLVM_TARGET_ALL	Wed Jun 27 16:57:51 2018	(r335706)
+++ head/tools/build/options/WITH_LLVM_TARGET_ALL	Wed Jun 27 16:57:56 2018	(r335707)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806271657.w5RGvupg072943>