projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67fc1e7
)
Issue a #error if the host doesn't have an implementation for
author
Dan Gohman
<gohman@apple.com>
Tue, 7 Sep 2010 18:26:49 +0000
(18:26 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 7 Sep 2010 18:26:49 +0000
(18:26 +0000)
GetMainExecutable yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113240
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Path.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Path.inc
b/lib/System/Unix/Path.inc
index 47e4d1ac3c6b5124a329e6f54c446166ebddd1f0..184da1e27ac0c7a32dd76fc9495952bd7e0fb75e 100644
(file)
--- 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();
}