aboutsummaryrefslogtreecommitdiff
path: root/tools/build/options/WITH_LLVM_BINUTILS
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-09-06 08:49:49 +0000
committerDimitry Andric <dim@FreeBSD.org>2021-12-05 20:42:14 +0000
commita5186406aced401de7984f8b338675da650d0e25 (patch)
tree38249f3706fda4191a0b4cffd04d7c4b5db872b2 /tools/build/options/WITH_LLVM_BINUTILS
parent0c5f290ed90963b64b05a2098e0b11c3d9f6471f (diff)
Add WITH_LLVM_BINUTILS to install LLVM binutils instead of Elftoolchain
When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones. Having the LLVM binutils instead of the elftoolchain ones allows us to use features such as LTO that depend on binutils that understand LLVM IR. Another benefit will be an improved user-experience when compiling with AddressSanitizer, since ASAN does not symbolize backtraces correctly if addr2line is elftoolchain addr2line instead of llvm-symbolizer. See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/000062.html for more details. This is currently off by default but will be turned on by default at some point in the near future. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D31060 (cherry picked from commit 021385aba56279febcfdcc64d23673a0106ae45d)
Diffstat (limited to 'tools/build/options/WITH_LLVM_BINUTILS')
-rw-r--r--tools/build/options/WITH_LLVM_BINUTILS2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/build/options/WITH_LLVM_BINUTILS b/tools/build/options/WITH_LLVM_BINUTILS
new file mode 100644
index 000000000000..8fa2c55f31a9
--- /dev/null
+++ b/tools/build/options/WITH_LLVM_BINUTILS
@@ -0,0 +1,2 @@
+.\" $FreeBSD$
+Install LLVM's binutils (ar, addr2line, nm, etc.) instead of ELF Tool Chain's.