summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/utilsArgsParse.py
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-02-04 00:20:24 +0000
committerKamil Rytarowski <n54@gmx.com>2017-02-04 00:20:24 +0000
commit479153283050e51bde34a8c1fc1fd040f66d456c (patch)
treed265237b5c33b257f97944c1616ecdf1b04e4b87 /lldb/scripts/utilsArgsParse.py
parent9809b10586b789170ceef7a3764fa18b94cc496e (diff)
downloadbcm5719-llvm-479153283050e51bde34a8c1fc1fd040f66d456c.tar.gz
bcm5719-llvm-479153283050e51bde34a8c1fc1fd040f66d456c.zip
Install six.py conditionally
Summary: The current version of LLDB installs six.py into global python library directory. This approach produces conflicts downstream with distribution's py-six copy. Introduce new configure option LLDB_USE_SYSTEM_SIX (disabled by default). Once specified as TRUE, six.py won't be installed to Python's directory. Add new option in finishSwigWrapperClasses.py, namely --useSystemSix. Sponsored by <The NetBSD Foundation> Reviewers: mgorny, emaste, clayborg, joerg, labath Reviewed By: labath Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D29405 llvm-svn: 294071
Diffstat (limited to 'lldb/scripts/utilsArgsParse.py')
-rw-r--r--lldb/scripts/utilsArgsParse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/utilsArgsParse.py b/lldb/scripts/utilsArgsParse.py
index 4486661863b..fadf4b49831 100644
--- a/lldb/scripts/utilsArgsParse.py
+++ b/lldb/scripts/utilsArgsParse.py
@@ -113,12 +113,12 @@ def parse(vArgv, vstrListArgs, vListLongArgs, vDictArgReq, vstrHelpInfo):
break
if match == 0:
for arg in vListLongArgs:
- argg = "--" + arg[:arg.__len__() - 1]
+ argg = "--" + arg.rstrip('=')
if opt == argg:
if "m" == vDictArgReq[opt]:
countMandatoryOpts = countMandatoryOpts + 1
dictArgs[opt] = val
- if val.__len__() == 0:
+ if arg[-1:] == '=' and val.__len__() == 0:
bFoundNoInputValue = True
break
OpenPOWER on IntegriCloud