From d07e40b4150e06ca1eb804d9c66d12bf697a39bf Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 10 Aug 2016 14:46:41 -0700 Subject: [PATCH] Support build variable setting during bootstrap --- script/bootstrap.py | 4 +++- script/update.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index dc70ba6110eb..37f4ec21de94 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -103,11 +103,13 @@ def parse_args(): help='The shared library path of libchromiumcontent.') parser.add_argument('--libcc_static_library_path', required=False, help='The static library path of libchromiumcontent.') + parser.add_argument('--defines', default='', + help='The build variables passed to gyp') return parser.parse_args() def args_to_defines(args): - defines = '' + defines = args.defines if args.disable_clang: defines += ' clang=0' if args.clang_dir: diff --git a/script/update.py b/script/update.py index 2e551f7ad6cf..35331eb93626 100755 --- a/script/update.py +++ b/script/update.py @@ -27,7 +27,7 @@ def main(): def parse_args(): parser = argparse.ArgumentParser(description='Update build configurations') parser.add_argument('--defines', default='', - help='The definetions passed to gyp') + help='The build variables passed to gyp') parser.add_argument('--msvs', action='store_true', help='Generate Visual Studio project') return parser.parse_args()