<div dir="ltr"><div>Nick's concern makes sense. We should allow -flavor only at the first argument (i.e. argv[1]) because -flavor can be a valid command line argument of the other linker.<br></div><div class="gmail_extra"><div class="gmail_quote"><br></div><div class="gmail_quote">You should process raw argv and argc first for -flavor, and then pass the rest to parseArgs.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Sep 17, 2014 at 12:44 PM, <a href="mailto:kledzik@apple.com">kledzik@apple.com</a> <span dir="ltr"><<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The original design was that -flavor had to be the first arg (so incrementing argv worked).  But now the use of ParseArgs() means that -flavor is being searched for everywhere in the arg list. That is a mismatch.<br>
<div class="HOEnZb"><div class="h5"><br>
<a href="http://reviews.llvm.org/D5384" target="_blank">http://reviews.llvm.org/D5384</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>