Skip to content

Commit 929740b

Browse files
committed
fix jumbled IR dumping
1 parent 9538be5 commit 929740b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/imex-runner/imex-runner.py.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,9 @@ if args.before:
164164
cmd.append(f'--mlir-print-ir-before-all')
165165
if args.after:
166166
cmd.append(f'--mlir-print-ir-after-all')
167-
cmds.append(cmd)
168-
169-
# output to a file
170167
if args.output_file:
171-
cmd=['tee']
172-
cmd.append(args.output_file)
168+
cmd.append(f'-o')
169+
cmd.append(f'{args.output_file}')
173170
cmds.append(cmd)
174171

175172
# build runner command

0 commit comments

Comments
 (0)