If you have -o and multiple input files, which output file are you specifying?  It seems easier to just say that if multiple input files are present, the output file names are automatically calculated <br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 2:48 PM Stella Stamenova via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">stella.stamenova added inline comments.<br>
<br>
<br>
================<br>
Comment at: lldb/lit/helper/build.py:664<br>
+    if args.output and args.mode == 'compile' and len(args.inputs) > 1:<br>
+        raise ValueError('Cannot specify -o with mode=compile and multiple source files.  Use --outdir instead.')<br>
+<br>
----------------<br>
Why not? It makes sense that the test might still need to know and/or specify the name of the binary that was produced. The script could require that both -o and --outdir are specified, but I think -o is still needed.<br>
<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D55230/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D55230/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D55230" rel="noreferrer" target="_blank">https://reviews.llvm.org/D55230</a><br>
<br>
<br>
<br>
</blockquote></div>