mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-30 00:32:53 +00:00
Issue a #error if the host doesn't have an implementation for
GetMainExecutable yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67fc1e76d4
commit
b52d44a0e6
@ -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