a8b9895872
Since elftoolchain's cxxfilt is rather far behind on features, and we ran into several bugs, add an option to use llvm-cxxfilt as an drop-in replacement. It supports the same options as elftoolchain cxxfilt, though it doesn't have support for old ARM (C++ Annotated Reference Manual, not the CPU) and GNU v2 manglings. But these are irrelevant in 2020. Note: as we already compile the required libraries as part of libllvm, this will not add any significant build time either. PR: 250702 Reviewed by: emaste, yuri Differential Revision: https://reviews.freebsd.org/D27071 MFC after: 2 weeks
69 lines
1.1 KiB
Makefile
69 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
SUBDIR+= clang
|
|
SUBDIR+= clang-tblgen
|
|
SUBDIR+= llvm-tblgen
|
|
|
|
.if ${MK_LLDB} != "no"
|
|
SUBDIR+= lldb-tblgen
|
|
.endif
|
|
|
|
.if !defined(TOOLS_PREFIX)
|
|
SUBDIR+= llvm-ar
|
|
SUBDIR+= llvm-nm
|
|
SUBDIR+= llvm-objdump
|
|
SUBDIR+= llvm-symbolizer
|
|
|
|
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLVM_CXXFILT} != "no"
|
|
SUBDIR+= llvm-cxxfilt
|
|
.endif
|
|
|
|
.if ${MK_CLANG_EXTRAS} != "no"
|
|
SUBDIR+= bugpoint
|
|
SUBDIR+= llc
|
|
SUBDIR+= lli
|
|
SUBDIR+= llvm-as
|
|
SUBDIR+= llvm-bcanalyzer
|
|
SUBDIR+= llvm-cxxdump
|
|
SUBDIR+= llvm-diff
|
|
SUBDIR+= llvm-dis
|
|
SUBDIR+= llvm-dwarfdump
|
|
SUBDIR+= llvm-dwp
|
|
SUBDIR+= llvm-extract
|
|
SUBDIR+= llvm-link
|
|
SUBDIR+= llvm-lto
|
|
SUBDIR+= llvm-lto2
|
|
SUBDIR+= llvm-mc
|
|
SUBDIR+= llvm-mca
|
|
SUBDIR+= llvm-modextract
|
|
SUBDIR+= llvm-objcopy
|
|
SUBDIR+= llvm-pdbutil
|
|
SUBDIR+= llvm-rtdyld
|
|
SUBDIR+= llvm-size
|
|
SUBDIR+= llvm-strings
|
|
SUBDIR+= llvm-xray
|
|
SUBDIR+= opt
|
|
.endif
|
|
|
|
.if ${MK_CLANG_EXTRAS} != "no" || ${MK_CLANG_FORMAT} != "no"
|
|
SUBDIR+= clang-format
|
|
.endif
|
|
|
|
.if ${MK_LLD} != "no"
|
|
SUBDIR+= lld
|
|
.endif
|
|
.if ${MK_LLDB} != "no"
|
|
SUBDIR+= lldb
|
|
.endif
|
|
.if ${MK_LLVM_COV} != "no"
|
|
SUBDIR+= llvm-cov
|
|
SUBDIR+= llvm-profdata
|
|
.endif
|
|
.endif # TOOLS_PREFIX
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
.include <bsd.subdir.mk>
|