From: LLVM Packaging Team Date: Sat, 15 Aug 2020 19:53:41 +0000 (+0100) Subject: impl-path-hurd X-Git-Tag: archive/raspbian/1%9.0.1-14+rpi1^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=117559e3e2997695b86096a0d5acb49cd986495f;p=llvm-toolchain-9.git impl-path-hurd =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name impl-path-hurd.diff --- diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 27c8a1bc9..e83fafb87 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -203,7 +203,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) { // If we don't have procfs mounted, fall back to argv[0] if (getprogpath(exe_path, argv0) != NULL) return exe_path; -#elif defined(__linux__) || defined(__CYGWIN__) +#elif defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) char exe_path[MAXPATHLEN]; StringRef aPath("/proc/self/exe"); if (sys::fs::exists(aPath)) {