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.



git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@113575 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Target/TargetList.cpp b/source/Target/TargetList.cpp
index d128d04..a4adf3f 100644
--- a/source/Target/TargetList.cpp
+++ b/source/Target/TargetList.cpp
@@ -71,6 +71,10 @@
     {
         ModuleSP exe_module_sp;
         FileSpec resolved_file(file);
+        
+        if (!resolved_file.Exists())
+            resolved_file.ResolveExecutableLocation ();
+            
         if (!Host::ResolveExecutableInBundle (&resolved_file))
             resolved_file = file;