<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/143506>143506</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Multi-Call command line building error
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lorenz
</td>
</tr>
</table>
<pre>
I'm using a multicall build of LLVM/Clang (i.e. I have a single binary symlinked to all tools) and I'm running into an issue where if a driver call gets executed out-of-process (either because it gets expanded into multiple cc1 invocations or forced via -fproc-stat-report) the argument parsing breaks.
The multicall binary calls "path/to/clang clang -cc1" (note the duplicate clang), this works for integrated (internal redirection, no execve) cc1 but breaks for out-of-process execution. It works if I invoke the compiler as "path/to/llvm clang" (not using the symlink) as then the tool name is not in the command line twice.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkk0-PszYQxj-NuYxA4MBmc-Cw3SrSSu_eqt4HewB3jY3sIen201cDifrnvSTI8sw8z8_PYM5uCkS96n5R3a8FbjzH1PuYKPxVDNF-9x9KnxfYsgsTICybZ2fQexg25y3EEX78-P1T6eu7xzCB0q-uogo-YMYbAYLUeYLBBUzfkL8X78IXWeAI0oVj9FnpC2CwcIxKWwgyzAW5E8DlvBHcZ0oEbgQEm9yNEuwqJuIM9CeZjclC3LiMY7mmaChnEUOOZ0owkMEtEzh-VqwYLNljyG5q9QTGNODCLRpkF0OGmGCMyZCFm0MoR2lcZkYuE60xsQjnmQDTtC0UGFZMO6ghEX7lStVvqn77baZ_cztIyLco1CvyrPSVo9JXszM8fktjGqW1mAiRaZ9jt9U7g0zHHaUvSr8Dzy7DPaavLGrFEk0JhYe8RmBKAT0ksi6REWNSFOKO7UbiQXwPGz9k713-h_JA7GKo4IMfw9wIHzuur0OdicvqPCXAn4x5f1uemp-WHpmSykcs9hxkOQn7sYQDAi4ELoNUuPActEhevAsEfHeGhHRh-5O9nC5YUN-c20vXnS7tqZj7ukGL9KpxpBG1NdgMA3Zn7OxL-9K9toXrda27-qWpm6bR-lSZTtvufK513dozYa3amhZ0vhIfVUxTsYeyb9pTV78UHgfyed8hrQPdj8gqrWWlUi9F5bBNWbW1d5nzP23Ysaf-U8JRvks6_mNtXzFhRCnFVGzJ9zPzmtXpTemr0tfJ8bwNlYnLg_HjT57tDzKs9HWXkpW-PrTeev13AAAA___29FgX">