Skip to content

Commit 97b6b53

Browse files
committed
Add missing PY_MAJOR_VERSION > 3 in LLDB_EMBED_PYTHON_HOME
1 parent 35d76ac commit 97b6b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct InitializePythonRAII {
117117
return Py_DecodeLocale(absolute_python_home, &size);
118118
}();
119119
if (g_python_home != nullptr) {
120-
#if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 8)
120+
#if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >= 8) || (PY_MAJOR_VERSION > 3)
121121
PyConfig_SetBytesString(&config, &config.home, g_python_home);
122122
#else
123123
Py_SetPythonHome(g_python_home);

0 commit comments

Comments
 (0)