Chromium Code Reviews| Index: tools/build.py |
| diff --git a/tools/build.py b/tools/build.py |
| index e30b1f81ce80c4d036254305798b7c9afdb01719..9f4bfc76fe5fe7904ec067bd8f367c6a929e2a2a 100755 |
| --- a/tools/build.py |
| +++ b/tools/build.py |
| @@ -44,11 +44,11 @@ the Dart repo root, |
| unless you really intend to use a non-default Makefile.""" % DART_ROOT |
| -DART_USE_GN = "DART_USE_GN" |
| +DART_USE_GYP = "DART_USE_GYP" |
| -def use_gn(): |
| - return DART_USE_GN in os.environ |
| +def use_gyp(): |
| + return DART_USE_GYP in os.environ |
| def BuildOptions(): |
| @@ -84,9 +84,9 @@ def BuildOptions(): |
| help='Name of the devenv.com/msbuild executable on Windows (varies for ' |
| 'different versions of Visual Studio)', |
| default=vs_executable) |
| - result.add_option("--gn", |
| + result.add_option("--gyp", |
| help='Build with GN/Ninja', |
|
Bill Hesse
2016/12/21 19:38:14
The help comment needs to be changed.
zra
2016/12/21 20:32:06
Done.
|
| - default=use_gn(), |
| + default=use_gyp(), |
| action='store_true') |
| return result |
| @@ -435,7 +435,7 @@ def BuildNinjaCommand(options, target, target_os, mode, arch): |
| if options.verbose: |
| command += ['-v'] |
| if UseGoma(out_dir): |
| - command += ['-j200'] |
| + command += ['-j1000'] |
| command += [target] |
| return command |
| @@ -446,7 +446,7 @@ def BuildOneConfig(options, target, target_os, mode, arch, override_tools): |
| start_time = time.time() |
| args = [] |
| build_config = utils.GetBuildConf(mode, arch, target_os) |
| - if options.gn: |
| + if not options.gyp: |
| args = BuildNinjaCommand(options, target, target_os, mode, arch) |
| else: |
| os.environ['DART_BUILD_MODE'] = mode |