mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 00:18:06 +00:00
Issue a #error if the host doesn't have an implementation for
GetMainExecutable yet. llvm-svn: 113240
This commit is contained in:
parent
e6f7e4684d
commit
2625d9a286
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user