Issue a #error if the host doesn't have an implementation for

GetMainExecutable yet.

llvm-svn: 113240
This commit is contained in:
Dan Gohman 2010-09-07 18:26:49 +00:00
parent e6f7e4684d
commit 2625d9a286

View File

@ -372,6 +372,8 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
char link_path[MAXPATHLEN];
if (realpath(DLInfo.dli_fname, link_path))
return Path(std::string(link_path));
#else
#error GetMainExecutable is not implemented on this host yet.
#endif
return Path();
}