forked from OSchip/llvm-project
Fix windows&mac builds broken by r331970 (RunShellCommand/Timeout) refactor
llvm-svn: 331974
This commit is contained in:
parent
6556aa6848
commit
70f4eaf699
|
@ -571,8 +571,9 @@ bool Symbols::DownloadObjectAndSymbolFile(ModuleSpec &module_spec,
|
|||
&exit_status, // Exit status
|
||||
&signo, // Signal int *
|
||||
&command_output, // Command output
|
||||
30, // Large timeout to allow for long dsym download times
|
||||
false); // Don't run in a shell (we don't need shell expansion)
|
||||
std::chrono::seconds(
|
||||
30), // Large timeout to allow for long dsym download times
|
||||
false); // Don't run in a shell (we don't need shell expansion)
|
||||
if (error.Success() && exit_status == 0 && !command_output.empty()) {
|
||||
CFCData data(CFDataCreateWithBytesNoCopy(
|
||||
NULL, (const UInt8 *)command_output.data(), command_output.size(),
|
||||
|
|
|
@ -207,7 +207,7 @@ Status Host::ShellExpandArguments(ProcessLaunchInfo &launch_info) {
|
|||
std::string output;
|
||||
std::string command = expand_command.GetString();
|
||||
RunShellCommand(command.c_str(), launch_info.GetWorkingDirectory(), &status,
|
||||
nullptr, &output, 10);
|
||||
nullptr, &output, std::chrono::seconds(10));
|
||||
|
||||
if (status != 0) {
|
||||
error.SetErrorStringWithFormat("lldb-argdumper exited with error %d",
|
||||
|
|
Loading…
Reference in New Issue