An attempt at building lldb from recent trunk source failed for me with
a Python error
UnboundedLocalError: local variable 'strErrMsgProgFail' referenced before
assignment
in tools/lldb/scripts/Python/buildSwigPython.py. I have not much of an
idea about Python, but from
<http://stackoverflow.com/questions/423379/using-global-variables-in-a-function-other-than-the-one-that-created-them>
it looks like there is "global strErrMsgProgFail" missing, and the
attached lldb-buildSwigPython.patch indeed fixed the problem for me.
(I have no commit rights, so would ask for this to get pushed by
somebody if acceptable.)
Index: scripts/Python/buildSwigPython.py
===================================================================
--- scripts/Python/buildSwigPython.py (revision 252713)
+++ scripts/Python/buildSwigPython.py (working copy)
@@ -640,6 +640,7 @@
strMsg = ""
if not "--swigExecutable" in vDictArgs:
+ global strErrMsgProgFail
strErrMsgProgFail += strErrMsgSwigParamsMissing
return (-100, strErrMsgProgFail)
@@ -769,6 +770,7 @@
if bOk:
return (0, strMsg)
else:
+ global strErrMsgProgFail
strErrMsgProgFail += strMsg
return (-100, strErrMsgProgFail)
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits