mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
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:
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user