Index: pydir/crosstest_generator.py |
diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py |
index ef32a080b677a23a00bffaf450859e2df58a2b0f..9336535582de2f9f425d777b10ad903b26d68040 100755 |
--- a/pydir/crosstest_generator.py |
+++ b/pydir/crosstest_generator.py |
@@ -104,6 +104,8 @@ def main(): |
help='Generate files for lit testing') |
argparser.add_argument('--toolchain-root', dest='toolchain_root', |
help='Path to toolchain binaries.') |
+ argparser.add_argument('--filetype', default=None, dest='filetype', |
+ help='File type for compilation {asm, iasm, obj}.') |
args = argparser.parse_args() |
# Run from the crosstest directory to make it easy to grab inputs. |
@@ -149,6 +151,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), |