[lldb-dev] Querying build configuration of (lib)lldb from tests.

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Mon Feb 5 04:01:12 PST 2018

Hello all,

In <https://reviews.llvm.org/D42145> we have a feature that only works
when lldb was built with xml support. To  test this, we need the test
to know whether we were build with xml support.

The typical llvm solution would be to generate some dotest equivalent
of lit.site.cfg at build time, which we could then load from the test
and query for build settings.

However, it has occurred to me that the information about various
build properties (xml suport, libedit support, list of llvm targets we
support) is something that could be useful to other liblldb clients as
well. So, another way of exposing this would be to have a function
(maybe a static function on SBDebugger ?) that the test can call and
get the required information that way.

Do you have any thoughts on how this should be handled? Or maybe know
of an existing way that we could check this information already?


More information about the lldb-dev mailing list