aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2019-01-31 15:07:32 +0000
committerEd Maste <emaste@FreeBSD.org>2019-01-31 15:07:32 +0000
commitca5efb62ee5af78c01703bbb9e794a2a21df5747 (patch)
tree8e471f92bda345d2a53b54c6b57d7c7c584bce4c /share
parent838b61c1f0029564d6bafbef2a1259144614622e (diff)
downloadsrc-ca5efb62ee5af78c01703bbb9e794a2a21df5747.tar.gz
src-ca5efb62ee5af78c01703bbb9e794a2a21df5747.zip
Enable lld as the system linker by default on i386
The migration to LLVM's lld linker has been in progress for quite some time - I opened an LLVM tracking bug (23214) in April 2015 to track issues using lld as FreeBSD's linker, and requested the first exp-run using lld as /usr/bin/ld in November 2016. In 12.0 LLD is the system linker on amd64, arm64, and armv7. i386 was not switched initially as there were additional ports failures not found on amd64. Those have largely been addressed now, although there are a small number of issues that are still being worked on. In some of these cases having lld as the system linker makes it easier for developers and third parties to investigate failures. Thanks to antoine@ for handling the exp-runs and to everyone in the FreeBSD and LLVM communites who have fixed issues with lld to get us to this point. PR: 214864 Relnotes: Yes Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=343606
Diffstat (limited to 'share')
-rw-r--r--share/mk/src.opts.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 7aa53f35e5f4..be1d4efb8dde 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -321,11 +321,9 @@ __DEFAULT_YES_OPTIONS+=LLVM_LIBUNWIND
.else
__DEFAULT_NO_OPTIONS+=LLVM_LIBUNWIND
.endif
-.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "armv7"
+.if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "armv7" || \
+ ${__T} == "i386"
__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
-.elif ${__T} == "i386"
-__DEFAULT_YES_OPTIONS+=LLD_BOOTSTRAP
-__DEFAULT_NO_OPTIONS+=LLD_IS_LD
.else
__DEFAULT_NO_OPTIONS+=LLD_BOOTSTRAP LLD_IS_LD
.endif