================
@@ -120,14 +120,30 @@ struct InitializePythonRAII {
return spec.GetPath();
}();
if (!g_python_home.empty()) {
- PyConfig_SetBytesString(&config, &config.home, g_python_home.c_str());
+ PyStatus py_status =
+ PyConfig_SetBytesString(&config, &config.home,
g_python_home.c_str());
+ if (py_status._type == PyStatus::_PyStatus_TYPE_ERROR) {
+ PyConfig_Clear(&config);
+ llvm::WithColor::error() << "Failed to set the Python config: '"
----------------
charles-zablit wrote:
That would be better yes. Is there a way to return a plugin initialization
error in lldb? As in, notify lldb that a plugin failed to initialize?
https://github.com/llvm/llvm-project/pull/181160
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits