From owner-svn-src-projects@freebsd.org Thu Feb 9 14:47:35 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95216CD651C for ; Thu, 9 Feb 2017 14:47:35 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 623F0A43; Thu, 9 Feb 2017 14:47:35 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v19ElY5Q004410; Thu, 9 Feb 2017 14:47:34 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v19ElYID004409; Thu, 9 Feb 2017 14:47:34 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201702091447.v19ElYID004409@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Thu, 9 Feb 2017 14:47:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r313473 - projects/clang400-import/share/mk X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 14:47:35 -0000 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