]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r367304:
authorDimitry Andric <dim@FreeBSD.org>
Wed, 2 Dec 2020 21:39:54 +0000 (21:39 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 2 Dec 2020 21:39:54 +0000 (21:39 +0000)
commitbda7a14fa01822cc967b6f5384bd327a290bb35a
tree089639cb776cf5fd4bab382aff3fa59e266a905c
parentdc41e7b089828a403f24a95982afa653bc794808
MFC r367304:

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 r367712:

Ensure make delete-old does not unlink the llvm-cxxfilt and its manpage,
after r367304 and r367324, when WITH_LLVM_CXXFILT is enabled.

Noticed by: "Herbert J. Skuhra" <herbert@gojira.at>
share/man/man5/src.conf.5
share/mk/src.opts.mk
tools/build/mk/OptionalObsoleteFiles.inc
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