Chromium Code Reviews| Index: pydir/crosstest_generator.py |
| diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py |
| index 31a1cf7275a1ebb64ab162dbb7c70afca05d14e0..7aab059b2221d2e2d14ebfd75cc26901cc844cf6 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 for compilation {asm, iasm, obj}.') |
|
Jim Stichnoth
2016/01/10 03:08:55
I suggest documenting this something like "...file
sehr
2016/01/11 21:49:47
I'm not sure I totally got what you're saying, but
|
| 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), |