Author: davide Date: Fri Mar 22 15:38:49 2019 New Revision: 356819 URL: http://llvm.org/viewvc/llvm-project?rev=356819&view=rev Log: [ScriptInterpreter] Remove a warning and reformat comments.
Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp?rev=356819&r1=356818&r2=356819&view=diff ============================================================================== --- lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (original) +++ lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp Fri Mar 22 15:38:49 2019 @@ -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 } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits