Fix the clang -Werror build & make the unit tests link under Linux

The order of libraries passed to the linker didn't work under linux (you
need the llvm libraries first, then the lldb libraries). I modelled this
after clang's setup here. Seemed simple enough to just be consistent.

llvm-svn: 232461
This commit is contained in:
David Blaikie
2015-03-17 03:32:21 +00:00
parent baf1aaaf1f
commit 3dfb86b641
9 changed files with 87 additions and 87 deletions

View File

@@ -919,28 +919,22 @@ LLDBSwigPythonCallCommandObject
lldb::SBDebugger debugger_sb(debugger);
lldb::SBExecutionContext exe_ctx_sb(exe_ctx_ref_sp);
bool retval = false;
PyErr_Cleaner py_err_cleaner(true);
{
PyErr_Cleaner py_err_cleaner(true);
PyCallable pfunc = PyCallable::FindWithMemberFunction(implementor,"__call__");
PyCallable pfunc = PyCallable::FindWithMemberFunction(implementor,"__call__");
if (!pfunc)
return false;
if (!pfunc)
return NULL;
// pass the pointer-to cmd_retobj_sb or watch the underlying object disappear from under you
// see comment above for SBCommandReturnObjectReleaser for further details
PyObject* pvalue = NULL;
// pass the pointer-to cmd_retobj_sb or watch the underlying object disappear from under you
// see comment above for SBCommandReturnObjectReleaser for further details
PyObject* pvalue = NULL;
pvalue = pfunc(debugger_sb, args, exe_ctx_sb, &cmd_retobj_sb);
pvalue = pfunc(debugger_sb, args, exe_ctx_sb, &cmd_retobj_sb);
Py_XDECREF (pvalue);
Py_XDECREF (pvalue);
retval = true;
}
return retval;
return true;
}
SWIGEXPORT void*