File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -495,13 +495,18 @@ bool IsPythonDLLInPath() {
495495
496496void SetupPythonRuntimeLibrary () {
497497#ifdef LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME
498- if (!IsPythonDLLInPath ())
498+ if (IsPythonDLLInPath ())
499+ return ;
499500#ifdef LLDB_PYTHON_DLL_RELATIVE_PATH
500- if (AddPythonDLLToSearchPath ())
501- return
501+ if (AddPythonDLLToSearchPath ())
502+ return
502503#endif
503- llvm::errs () << " error: unable to find "
504- << LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << " .\n " ;
504+ llvm::errs () << " error: unable to find "
505+ << LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME << " .\n " ;
506+ return ;
507+ #elifdef LLDB_PYTHON_DLL_RELATIVE_PATH
508+ if (!AddPythonDLLToSearchPath ())
509+ llvm::errs () << " error: unable to find the Python runtime library.\n " ;
505510#endif
506511}
507512#endif
You can’t perform that action at this time.
0 commit comments