JDevlieghere created this revision. JDevlieghere added a reviewer: davide. JDevlieghere added a project: LLDB. Herald added a subscriber: abidh.
This is clearly a layering violation and there's no good way to fix this. The value it adds is limited, people can use the `$PYTHONPATH` or call the corresponding Python API. Repository: rLLDB LLDB https://reviews.llvm.org/D61090 Files: lldb/source/API/SBHostOS.cpp Index: lldb/source/API/SBHostOS.cpp =================================================================== --- lldb/source/API/SBHostOS.cpp +++ lldb/source/API/SBHostOS.cpp @@ -18,9 +18,6 @@ #include "lldb/Utility/FileSpec.h" #include "Plugins/ExpressionParser/Clang/ClangHost.h" -#ifndef LLDB_DISABLE_PYTHON -#include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" -#endif #include "llvm/ADT/SmallString.h" #include "llvm/Support/Path.h" @@ -60,9 +57,6 @@ fspec = HostInfo::GetHeaderDir(); break; case ePathTypePythonDir: -#ifndef LLDB_DISABLE_PYTHON - fspec = ScriptInterpreterPython::GetPythonDir(); -#endif break; case ePathTypeLLDBSystemPlugins: fspec = HostInfo::GetSystemPluginDir();
Index: lldb/source/API/SBHostOS.cpp =================================================================== --- lldb/source/API/SBHostOS.cpp +++ lldb/source/API/SBHostOS.cpp @@ -18,9 +18,6 @@ #include "lldb/Utility/FileSpec.h" #include "Plugins/ExpressionParser/Clang/ClangHost.h" -#ifndef LLDB_DISABLE_PYTHON -#include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" -#endif #include "llvm/ADT/SmallString.h" #include "llvm/Support/Path.h" @@ -60,9 +57,6 @@ fspec = HostInfo::GetHeaderDir(); break; case ePathTypePythonDir: -#ifndef LLDB_DISABLE_PYTHON - fspec = ScriptInterpreterPython::GetPythonDir(); -#endif break; case ePathTypeLLDBSystemPlugins: fspec = HostInfo::GetSystemPluginDir();
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits