[cmake] Detect presence of wide-char libedit at build time
authorPavel Labath <labath@google.com>
Mon, 11 Jun 2018 09:14:26 +0000 (09:14 +0000)
committerPavel Labath <labath@google.com>
Mon, 11 Jun 2018 09:14:26 +0000 (09:14 +0000)
commit33513811656baddad1a9a6d15da1703c06661aaa
treebae20c0c2461bbf6643b8ee4494f715141e0a918
parent00d8843fa39e917882023c54f43eb4b77c113e4c
[cmake] Detect presence of wide-char libedit at build time

Summary:
Instead of hardcoding a list of platforms where libedit is known to have
wide char support we detect this in cmake. The main motivation for this
is attempting to improve compatibility with different versions of
libedit, as the interface of non-wide-char functions varies slightly
between versions.

Reviewers: krytarowski, uweigand, jankratochvil, timshen, beanz

Subscribers: mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D47625

llvm-svn: 334393
lldb/cmake/modules/LLDBGenerateConfig.cmake
lldb/include/lldb/Host/Config.h
lldb/include/lldb/Host/Config.h.cmake
lldb/include/lldb/Host/Editline.h