Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2017 14:47:34 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r313473 - projects/clang400-import/share/mk
Message-ID:  <201702091447.v19ElYID004409@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Feb  9 14:47:34 2017
New Revision: 313473
URL: https://svnweb.freebsd.org/changeset/base/313473

Log:
  Disable LLD_IS_LD option combinations that fail
  
  If WITH_LLD is disabled LLD is not built and cannot be installed as
  /usr/bin/ld, so disable WITH_LLD_IS_LD.
  
  Currently we do not compare the LLD host/in-tree version and LLD
  requires the LLVM libraries to be built, so force WITH_SYSTEM_COMPILER
  off when WITH_LLD_IS_LD is set.
  
  The logic for bootstrapping LLD requires some tidying later. We should
  be able to detect that the host linker is the same version and avoid
  building LLD in the same way that WITH_SYSTEM_COMPILER handles Clang.
  We also may be able to extend libllvmminimal to meet LLD's needs.  For
  now this change unbreaks buildworld with default settings except for
  WITH_LLD_IS_LD.
  
  Reported by:	Shawn Webb
  Reviewed by:	bdrewery
  Tested by:	Shawn Webb
  Sponsored by:	The FreeBSD Foundation
  Differential Revision:	https://reviews.freebsd.org/D9487

Modified:
  projects/clang400-import/share/mk/src.opts.mk

Modified: projects/clang400-import/share/mk/src.opts.mk
==============================================================================
--- projects/clang400-import/share/mk/src.opts.mk	Thu Feb  9 13:32:19 2017	(r313472)
+++ projects/clang400-import/share/mk/src.opts.mk	Thu Feb  9 14:47:34 2017	(r313473)
@@ -325,6 +325,16 @@ MK_LDNS_UTILS:=	no
 MK_UNBOUND:= no
 .endif
 
+.if ${MK_LLD} == "no"
+MK_LLD_IS_LD:=	no
+.endif
+
+# LLD requires LLVM libraries, and we do not yet compare in-tree and host LLD
+# versions to avoid building it if they are identical.
+.if ${MK_LLD_IS_LD} != "no"
+MK_SYSTEM_COMPILER:=	no
+.endif
+
 .if ${MK_SOURCELESS} == "no"
 MK_SOURCELESS_HOST:=	no
 MK_SOURCELESS_UCODE:= no



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