[PATCH] D56975: [Support] Reimplement getMainExecutable() using sysctl on NetBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 20 05:17:54 PST 2019
krytarowski accepted this revision.
krytarowski added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Support/Unix/Path.inc:178
+#elif defined(__NetBSD__)
+ char exe_path[PATH_MAX];
+ int mib[4] = {CTL_KERN, KERN_PROC_ARGS, -1, KERN_PROC_PATHNAME};
----------------
Please include a comment with a rationale (hardlink issue) that this cannot be used on FreeBSD.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56975/new/
https://reviews.llvm.org/D56975
More information about the llvm-commits
mailing list