Patch from Pilipe to allow "target create" on the remote-macosx platform!

llvm-svn: 139342
This commit is contained in:
Johnny Chen 2011-09-09 00:20:12 +00:00
parent 940b598f6f
commit f2bd6a3984
1 changed files with 11 additions and 1 deletions

View File

@ -87,7 +87,17 @@ PlatformDarwin::ResolveExecutable (const FileSpec &exe_file,
exe_module_sp);
}
else
error.SetErrorString ("the platform is not currently connected");
{
// We may connect to a process and use the provided executable (Don't use local $PATH).
// Resolve any executable within a bundle on MacOSX
Host::ResolveExecutableInBundle (resolved_exe_file);
if (resolved_exe_file.Exists())
error.Clear();
else
error.SetErrorStringWithFormat("the platform is not currently connected, and '%s' doesn't exist in the system root.");
}
}