1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Pass the resolved lli-child-target executable name to execv, rather than

searching $PATH for it then blindly executing it from $PWD anyway.

llvm-svn: 191856
This commit is contained in:
Richard Smith 2013-10-02 21:33:12 +00:00
parent c43958bf36
commit 6c053da49c

View File

@ -536,7 +536,7 @@ int main(int argc, char **argv, char * const *envp) {
errs() << "Unable to find child target: '\''" << MCJITRemoteProcess << "\'\n";
return -1;
}
Target.reset(RemoteTarget::createExternalRemoteTarget(MCJITRemoteProcess));
Target.reset(RemoteTarget::createExternalRemoteTarget(ChildEXE));
}
} else {
// No child process name provided, use simulated remote execution.