[lldb] Push down the SWIG module to avoid an import cycle (#166265)
This is a reland of #129135 (by dingxiangfei2009) with Vladislav (dzhidzhoev) fix on top. Fixes #92603
This commit is contained in:
1 parent
adeedad449
commit
18b5e2a726
3 files changed
+13
-3
No files matched your search
@@ -272,6 +272,7 @@ void ScriptInterpreterPython::SharedLibraryDirectoryHelper(
|
||||
// does.
|
||||
if (this_file.GetFileNameExtension() == ".pyd") {
|
||||
this_file.RemoveLastPathComponent(); // _lldb.pyd or _lldb_d.pyd
|
||||
this_file.RemoveLastPathComponent(); // native
|
||||
this_file.RemoveLastPathComponent(); // lldb
|
||||
llvm::StringRef libdir = LLDB_PYTHON_RELATIVE_LIBDIR;
|
||||
for (auto it = llvm::sys::path::begin(libdir),
|
||||
|
||||
Reference in new issue
Block a user