summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/lli/lli.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index e6d4087476..e36d917958 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -668,8 +668,9 @@ int main(int argc, char **argv, char * const *envp) {
<< " Defaulting to simulated remote execution\n";
Target.reset(RemoteTarget::createRemoteTarget());
} else {
- if (!sys::fs::exists(ChildExecPath)) {
- errs() << "Unable to find child target: '" << ChildExecPath << "'\n";
+ if (!sys::fs::can_execute(ChildExecPath)) {
+ errs() << "Unable to find usable child executable: '" << ChildExecPath
+ << "'\n";
return -1;
}
Target.reset(RemoteTarget::createExternalRemoteTarget(ChildExecPath));