LLDB problem about building with Python

Hi LLDB devs,

I’m working on porting LLDB to my own architecture.
I choose to use the target-definition-file(python) to let LLDB support my architecture based on my situation(already have a workable GDB-stub and the target is an embedded DSP). The usage:
(lldb) settings set plugin.process.gdb-remote.target-definition-file /path/to/xxxx_target_definition.py
(lldb) gdb-remote xxxx

So I think I definitely need to rebuild LLDB with python support(cmake with -DLLDB_ENABLE_PYTHON=1 according to Building — The LLDB Debugger). But problem comes:
getting this error:

Hi Rui,

LLDB_ENABLE_LIBEDIT was introduced only recently (you're using the
current documentation but applying it to an old lldb) . Back in 7.0,
this was called LLDB_DISABLE_LIBEDIT (with the inverted meaning of values).