Chromium Code Reviews| Index: pydir/crosstest_generator.py |
| diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py |
| index 31a1cf7275a1ebb64ab162dbb7c70afca05d14e0..d80f3d222c7a3b5167eee9e26d338cc1b346df2c 100755 |
| --- a/pydir/crosstest_generator.py |
| +++ b/pydir/crosstest_generator.py |
| @@ -107,6 +107,8 @@ def main(): |
| '{root}/toolchain/linux_x86/pnacl_newlib_raw/bin' |
| ).format(root=root), |
| help='Path to toolchain binaries.') |
| + argparser.add_argument('--filetype', default=None, dest='filetype', |
| + help='File type override, set to {asm, iasm, obj}.') |
|
Jim Stichnoth
2016/01/12 14:54:02
Bikeshed: File type override, one of {asm,iasm,obj
sehr
2016/01/12 19:01:19
Done.
|
| args = argparser.parse_args() |
| # Run from the crosstest directory to make it easy to grab inputs. |
| @@ -152,6 +154,8 @@ def main(): |
| attr=attr) |
| extra = (tests.get(test, 'flags').split(' ') |
| if tests.has_option(test, 'flags') else []) |
| + if args.filetype: |
| + extra += ['--filetype={ftype}'.format(ftype=args.filetype)] |
| # Generate the compile command. |
| cmp_cmd = ( |
| ['{path}/crosstest.py'.format(path=pypath), |