Also initialize ScriptInterpreterNone if Python is disabled

Summary: We get an assertion otherwise because the None Interpreter cannot be found

Reviewers: zturner

Subscribers: zturner, lldb-commits

Differential Revision: http://reviews.llvm.org/D11898

llvm-svn: 245808
This commit is contained in:
Keno Fischer 2015-08-23 09:05:29 +00:00
parent 7bb12261a3
commit 6e77677f7b

View File

@ -231,6 +231,7 @@ void
SystemInitializerFull::Initialize()
{
SystemInitializerCommon::Initialize();
ScriptInterpreterNone::Initialize();
#if !defined(LLDB_DISABLE_PYTHON)
InitializeSWIG();
@ -238,7 +239,6 @@ SystemInitializerFull::Initialize()
// ScriptInterpreterPython::Initialize() depends on things like HostInfo being initialized
// so it can compute the python directory etc, so we need to do this after
// SystemInitializerCommon::Initialize().
ScriptInterpreterNone::Initialize();
ScriptInterpreterPython::Initialize();
#endif