summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2019-03-22 22:38:49 +0000
committerDavide Italiano <davide@freebsd.org>2019-03-22 22:38:49 +0000
commit4f9cb26063aa58c17dc4ab7e13a17d44ca165ed3 (patch)
treed8599af6c120cbff480f839dea9d782e61b94b21 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parente1cd11d80f5929e916de861f83d672ab72e29046 (diff)
downloadbcm5719-llvm-4f9cb26063aa58c17dc4ab7e13a17d44ca165ed3.tar.gz
bcm5719-llvm-4f9cb26063aa58c17dc4ab7e13a17d44ca165ed3.zip
[ScriptInterpreter] Remove a warning and reformat comments.
llvm-svn: 356819
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index d17a53b201f..012c5855e63 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
}
OpenPOWER on IntegriCloud