Chromium Code Reviews| Index: native_client_sdk/src/build_tools/build_projects.py |
| diff --git a/native_client_sdk/src/build_tools/build_projects.py b/native_client_sdk/src/build_tools/build_projects.py |
| index 11cc455ebfbca68d45b20683f41ac41f5a8b269e..cd88fbc9b36d43d8b0a64d5b8edfa587d08d3f6f 100755 |
| --- a/native_client_sdk/src/build_tools/build_projects.py |
| +++ b/native_client_sdk/src/build_tools/build_projects.py |
| @@ -185,6 +185,10 @@ def BuildProjectsBranch(pepperdir, branch, deps, clean, config, args=None): |
| make_cmd = [make, '-j', jobs] |
| make_cmd.append('CONFIG='+config) |
| + # We always ENABLE_BIONIC in case we need it. If neither --bionic nor |
| + # -t bionic have been provided ont he command line, then VALID_TOOLCHAINS |
|
binji
2014/04/02 18:35:53
on the
noelallen1
2014/04/03 17:58:52
Done.
|
| + # will not contain a bionic target. |
| + make_cmd.append('ENABLE_BIONIC=1') |
| if not deps: |
| make_cmd.append('IGNORE_DEPS=1') |
| @@ -224,6 +228,8 @@ def main(argv): |
| parser.add_option('--config', |
| help='Choose configuration to build (Debug or Release). Builds both ' |
| 'by default') |
| + parser.add_option('--bionic', |
| + help='Enable bionic projects', action='store_true') |
| parser.add_option('-x', '--experimental', |
| help='Build experimental projects', action='store_true') |
| parser.add_option('-t', '--toolchain', |
| @@ -259,7 +265,7 @@ def main(argv): |
| # e.g. If an example supports newlib and glibc, then the default will be |
| # newlib. |
| options.toolchain = ['pnacl', 'newlib', 'glibc', 'host'] |
| - if options.experimental: |
| + if options.experimental or options.bionic: |
| options.toolchain.append('bionic') |
| if 'host' in options.toolchain: |