mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 895027 - Add a --source argument to analyze.py to make it easier to run from arbitrary directories. r=NPOTB
DONTBUILD --HG-- extra : rebase_source : 09bef9ba415f1292646cf3534c1d59cf132667d9
This commit is contained in:
parent
7a4b796461
commit
9f34d29b4c
@ -19,7 +19,7 @@ def env(config):
|
||||
e = os.environ
|
||||
e['PATH'] = '%s:%s/bin' % (e['PATH'], config['sixgill'])
|
||||
e['XDB'] = '%(sixgill)s/bin/xdb.so' % config
|
||||
e['SOURCE_ROOT'] = e['TARGET']
|
||||
e['SOURCE_ROOT'] = config['source'] or e['TARGET']
|
||||
return e
|
||||
|
||||
def fill(command, config):
|
||||
@ -145,6 +145,8 @@ data = config.copy()
|
||||
parser = argparse.ArgumentParser(description='Statically analyze build tree for rooting hazards.')
|
||||
parser.add_argument('target', metavar='TARGET', type=str, nargs='?',
|
||||
help='run starting from this target')
|
||||
parser.add_argument('--source', metavar='SOURCE', type=str, nargs='?',
|
||||
help='source code to analyze')
|
||||
parser.add_argument('--jobs', '-j', default=4, metavar='JOBS', type=int,
|
||||
help='number of simultaneous analyzeRoots.js jobs')
|
||||
parser.add_argument('--list', const=True, nargs='?', type=bool,
|
||||
|
Loading…
Reference in New Issue
Block a user