In ConvertArgumentsForLaunchingInShell(), do you suggest I change the conditional to use /C if the shell name is "cmd.exe"?  Seems a little hackish, so if there's a better way then that would be preferable.<br><div><br></div><div>What about setting the Architecture as I'm currently doing, but modify the triple so it only contains OS and Environment, but not architecture?</div><br><div class="gmail_quote">On Fri Dec 05 2014 at 2:57:10 PM Greg Clayton <<a href="mailto:clayborg@gmail.com">clayborg@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The architecture check is in case you have a universal file that contains both x86_64 and i386, you might set the architecture to specify you want to run (debug more like it) the i386 slice even though you are on a 64 bit system (MacOSX supports this). For running a shell command, just let the system do what it needs to do and launch it using the best slice it can and don't set the architecture in the launch info.<br>
<br>
So please remove "launch_info.SetArchitecture(<u></u>HostInfo::GetArchitecture());" from Host::RunShellCommand().<br>
<br>
<a href="http://reviews.llvm.org/D6553" target="_blank">http://reviews.llvm.org/D6553</a><br>
<br>
<br>
</blockquote></div>