[lldb] Avoid using any shell when calling xcrun.
authorRaphael Isemann <teemperor@gmail.com>
Mon, 28 Jun 2021 16:58:42 +0000 (18:58 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 28 Jun 2021 17:53:52 +0000 (19:53 +0200)
commit355541a1b7a5011f8f4ebadc3e23b25c734f9d27
treea8b19c8bcf0f869f3dae7d3b9093118335257ed0
parent2ab27758d5c5e7985cee1a2651bc0a9ee4c2d8c9
[lldb] Avoid using any shell when calling xcrun.

When we run `xcrun` we don't have any user input in our command so relying on
the user's default shell doesn't make a lot of sense. If the user has set the
system shell to a something that isn't supported yet (dash, ash) then we would
run into the problem that we don't know how to escape our command string.

This patch just avoids using any shell at all as xcrun is always at the same
path.

Reviewed By: aprantl, JDevlieghere, kastiglione

Differential Revision: https://reviews.llvm.org/D104653
lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm