Skip to content

Commit df3ae1e

Browse files
committed
[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
1 parent 39525a6 commit df3ae1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
1010
#define LLDB_PLUGINS_SCRIPTINTERPRETER_PYTHON_PYTHONREADLINE_H
1111

12-
#if !defined(LLDB_DISABLE_LIBEDIT) && !defined(__APPLE__)
12+
#if !defined(LLDB_DISABLE_LIBEDIT) && defined(__linux__)
1313
// NOTE: Since Python may define some pre-processor definitions which affect the
1414
// standard headers on some systems, you must include Python.h before any
1515
// standard headers are included.

0 commit comments

Comments
 (0)