From: LLVM Packaging Team Date: Tue, 7 Jul 2020 16:18:00 +0000 (+0100) Subject: impl-path-hurd X-Git-Tag: archive/raspbian/1%9.0.1-13+rpi1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9f3bc55b6cef70a005776de92e6494a3bdd9bd22;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)) {