aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-07 18:26:49 +0000
committerDan Gohman <gohman@apple.com>2010-09-07 18:26:49 +0000
commitb52d44a0e6eb6fcf12cc3dcfffcf179f544b06a2 (patch)
treedecb1b3931cc456f5e40d4d758a1dcdd06ed0acc /lib/System/Unix
parent67fc1e76d4561635dbd56a79285e77c1ed595a30 (diff)
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
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Path.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 47e4d1ac3c..184da1e27a 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -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();
}