]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filt
authordim <dim@FreeBSD.org>
Tue, 3 Nov 2020 19:57:28 +0000 (19:57 +0000)
committerdim <dim@FreeBSD.org>
Tue, 3 Nov 2020 19:57:28 +0000 (19:57 +0000)
commita8b9895872b1bb4f32edfa7ece4dfc78deee756f
tree24f6aeede26ca29549731ad571dcd3be0abfb91b
parent3379d690443917bb0e34005421c9e7c443da2294
Add WITH_LLVM_CXXFILT option to install llvm-cxxfilt as c++filt

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
share/man/man5/src.conf.5
share/mk/src.opts.mk
tools/build/options/WITHOUT_LLVM_CXXFILT [new file with mode: 0644]
tools/build/options/WITH_LLVM_CXXFILT [new file with mode: 0644]
usr.bin/Makefile
usr.bin/clang/Makefile
usr.bin/clang/llvm-cxxfilt/Makefile