Require target_arch parameter
This commit is contained in:
parent
0deeae0214
commit
a4a1812f17
2 changed files with 4 additions and 4 deletions
|
@ -23,10 +23,10 @@ def parse_args():
|
|||
parser = argparse.ArgumentParser(description='Bootstrap this project')
|
||||
parser.add_argument('-c', '--commit', required=True,
|
||||
help='The commit of libchromiumcontent to download.')
|
||||
parser.add_argument('-t', '--target_arch', required=True,
|
||||
help='The arch of libchromiumcontent to download.')
|
||||
parser.add_argument('-d', '--dev', action='store_true',
|
||||
help='Do not download static_library build')
|
||||
parser.add_argument('--target_arch', required=True,
|
||||
help='The arch of libchromiumcontent to download.')
|
||||
parser.add_argument('url', help='The base URL from which to download '
|
||||
'libchromiumcontent (i.e., the URL you passed to '
|
||||
'libchromiumcontent\'s script/upload script')
|
||||
|
@ -44,7 +44,7 @@ def download_libchromiumcontent(is_dev, commit, target_arch, url):
|
|||
download = os.path.join(VENDOR_DIR, 'libchromiumcontent', 'script',
|
||||
'download')
|
||||
target_dir = os.path.join(DOWNLOAD_DIR, 'libchromiumcontent')
|
||||
args = ['-f', '-c', commit, '-t', target_arch, url, target_dir]
|
||||
args = ['-f', '-c', commit, '--target_arch', target_arch, url, target_dir]
|
||||
if is_dev:
|
||||
subprocess.check_call([sys.executable, download] + args)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue