| 222 | |
| 223 | #if SC_PLATFORM_APPLE |
| 224 | static bool tryResolveHostToolPath(StringView toolName, String& toolPath) |
| 225 | { |
| 226 | Process process; |
| 227 | String output = StringEncoding::Utf8; |
| 228 | if (not process.exec({"which", toolName}, output) or process.getExitStatus() != 0) |
| 229 | { |
| 230 | return false; |
| 231 | } |
| 232 | return toolPath.assign(StringView(output.view()).trimWhiteSpaces()); |
| 233 | } |
| 234 | |
| 235 | static bool tryResolveHostToolPath(Span<const StringView> toolNames, String& toolPath) |
| 236 | { |
no test coverage detected