diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-05 16:29:46 +0100 |
---|---|---|
committer | serge-sans-paille <sguelton@redhat.com> | 2019-11-21 19:58:20 +0100 |
commit | 6d7bc6033d7d3e452eeb181156e6c1bc2b14b897 (patch) | |
tree | 10a634c5774e0888f65540c004aee2754e34fc60 | |
parent | 186c848d84f1a4e7cd5b217ff3ae26083e2fdedf (diff) | |
download | llvm-6d7bc6033d7d3e452eeb181156e6c1bc2b14b897.zip llvm-6d7bc6033d7d3e452eeb181156e6c1bc2b14b897.tar.gz llvm-6d7bc6033d7d3e452eeb181156e6c1bc2b14b897.tar.bz2 |
[lldb] [Python] Build readline override module only on Linux
Restrict building the readline override to Linux only. It both does not
build on *BSD systems, and is largely irrelevant since they default to
using libedit over readline anyway. This restores the behavior
of the old readline override that also was built only on Linux.
Differential Revision: https://reviews.llvm.org/D69846
(cherry picked from commit df3ae1eb296d5193232649b5f282dfc4f01ba61f)
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h index 20242e2..faf95bb 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h @@ -9,7 +9,7 @@ #ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H #define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H -#if !defined(LLDB_DISABLE_LIBEDIT) && !defined(__APPLE__) +#if !defined(LLDB_DISABLE_LIBEDIT) && defined(__linux__) // NOTE: Since Python may define some pre-processor definitions which affect the // standard headers on some systems, you must include Python.h before any // standard headers are included. |