021385aba5
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
16 lines
228 B
Makefile
16 lines
228 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
# These have to be built in order.
|
|
SUBDIR= libllvm
|
|
.if ${MK_CLANG} != "no"
|
|
SUBDIR+= libclang
|
|
SUBDIR+= headers
|
|
.endif
|
|
.if ${MK_LLDB} != "no"
|
|
SUBDIR+= liblldb
|
|
.endif
|
|
|
|
.include <bsd.subdir.mk>
|