[llvm-commits] [llvm] r113240 - /llvm/trunk/lib/System/Unix/Path.inc
Dan Gohman
gohman at apple.com
Tue Sep 7 11:26:49 PDT 2010
Author: djg
Date: Tue Sep 7 13:26:49 2010
New Revision: 113240
URL: http://llvm.org/viewvc/llvm-project?rev=113240&view=rev
Log:
Issue a #error if the host doesn't have an implementation for
GetMainExecutable yet.
Modified:
llvm/trunk/lib/System/Unix/Path.inc
Modified: llvm/trunk/lib/System/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Path.inc?rev=113240&r1=113239&r2=113240&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Path.inc (original)
+++ llvm/trunk/lib/System/Unix/Path.inc Tue Sep 7 13:26:49 2010
@@ -372,6 +372,8 @@
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();
}
More information about the llvm-commits
mailing list