From: Davide Italiano Date: Fri, 22 Mar 2019 22:38:49 +0000 (+0000) Subject: [ScriptInterpreter] Remove a warning and reformat comments. X-Git-Tag: llvmorg-10-init~9332 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f9cb26063aa58c17dc4ab7e13a17d44ca165ed3;p=platform%2Fupstream%2Fllvm.git [ScriptInterpreter] Remove a warning and reformat comments. llvm-svn: 356819 --- diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index d17a53b..012c585 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -176,15 +176,15 @@ private: static char g_python_home[] = LLDB_PYTHON_HOME; #endif Py_SetPythonHome(g_python_home); -#endif #else #if defined(__APPLE__) && PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7 // For Darwin, the only Python version supported is the one shipped in the OS - // and linked with lldb. Other installation of Python may have higher priorities - // in the path, overriding PYTHONHOME and causing problems/incompatibilities. - // In order to avoid confusion, always hardcode the PythonHome to be right, - // as it's not going to change. - Py_SetPythonHome("/System/Library/Frameworks/Python.framework/Versions/2.7"); + // OS and linked with lldb. Other installation of Python may have higher + // priorities in the path, overriding PYTHONHOME and causing + // problems/incompatibilities. In order to avoid confusion, always hardcode + // the PythonHome to be right, as it's not going to change. + char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7"; + Py_SetPythonHome(path); #endif #endif }