Skip to content

Commit d07e40b

Browse files
committed
Support build variable setting during bootstrap
1 parent 58b391c commit d07e40b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

script/bootstrap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ def parse_args():
103103
help='The shared library path of libchromiumcontent.')
104104
parser.add_argument('--libcc_static_library_path', required=False,
105105
help='The static library path of libchromiumcontent.')
106+
parser.add_argument('--defines', default='',
107+
help='The build variables passed to gyp')
106108
return parser.parse_args()
107109

108110

109111
def args_to_defines(args):
110-
defines = ''
112+
defines = args.defines
111113
if args.disable_clang:
112114
defines += ' clang=0'
113115
if args.clang_dir:

script/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def main():
2727
def parse_args():
2828
parser = argparse.ArgumentParser(description='Update build configurations')
2929
parser.add_argument('--defines', default='',
30-
help='The definetions passed to gyp')
30+
help='The build variables passed to gyp')
3131
parser.add_argument('--msvs', action='store_true',
3232
help='Generate Visual Studio project')
3333
return parser.parse_args()

0 commit comments

Comments
 (0)