If the file the user specifies can't be found in the current directory,

and the user didn't specify a particular directory, search for the file 
using the $PATH environment variable.

llvm-svn: 113575
This commit is contained in:
Caroline Tice
2010-09-10 04:48:55 +00:00
parent 6c0cc5e69a
commit 428a9a58fa
9 changed files with 111 additions and 1 deletions

View File

@@ -61,6 +61,13 @@ SBFileSpec::Exists () const
return false;
}
bool
SBFileSpec::ResolveExecutableLocation ()
{
if (m_opaque_ap.get())
return m_opaque_ap->ResolveExecutableLocation ();
return false;
}
int
SBFileSpec::ResolvePath (const char *src_path, char *dst_path, size_t dst_len)