| Index: pydir/crosstest_generator.py
|
| diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py
|
| index 31a1cf7275a1ebb64ab162dbb7c70afca05d14e0..e478e1c4ddb5c0f15b61f4628016e78fa9723482 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, one of {asm, iasm, obj}.')
|
| 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),
|
|
|