<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>I’ll try to come up with something.  This needs an external script so portability may become issue.  I’ll try it with python.</div><div><br></div><div>Unfortunately, when the original feature was added (—compile-custom —compile-command,) there was no test added.  So it’s not that I could just piggyback on something.</div><div><br></div><div>Adam</div><br><div><div>On Mar 8, 2014, at 12:18 AM, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p dir="ltr">Any chance of test cases?</p>
<div class="gmail_quote">On Mar 7, 2014 11:56 PM, "Adam Nemet" <<a href="mailto:anemet@apple.com">anemet@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: anemet<br>
Date: Sat Mar  8 01:48:19 2014<br>
New Revision: 203343<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=203343&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=203343&view=rev</a><br>
Log:<br>
[bugpoint] Don't ignore arg in -compile-commad="tool arg"<br>
<br>
Args is an output parameter of the function lexCommand but the reference<br>
operator was missed.<br>
<br>
Modified:<br>
    llvm/trunk/tools/bugpoint/ToolRunner.cpp<br>
<br>
Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=203343&r1=203342&r2=203343&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=203343&r1=203342&r2=203343&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)<br>
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Sat Mar  8 01:48:19 2014<br>
@@ -406,7 +406,7 @@ int CustomExecutor::ExecuteProgram(const<br>
 // code borrowed from:<br>
 // <a href="http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html" target="_blank">http://oopweb.com/CPP/Documents/CPPHOWTO/Volume/C++Programming-HOWTO-7.html</a><br>
 static void lexCommand(std::string &Message, const std::string &CommandLine,<br>
-                       std::string &CmdPath, std::vector<std::string> Args) {<br>
+                       std::string &CmdPath, std::vector<std::string> &Args) {<br>
<br>
   std::string Command = "";<br>
   std::string delimiters = " ";<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>
</blockquote></div>
</blockquote></div><br></body></html>