From: LLVM Packaging Team Date: Tue, 12 Nov 2019 13:12:48 +0000 (+0000) Subject: impl-path-hurd X-Git-Tag: archive/raspbian/1%8.0.1-4+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a2b4bf0905364918eb727f76618fa0c1e53686b;p=llvm-toolchain-8.git impl-path-hurd =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name impl-path-hurd.diff --- diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index d7cc0d627..69f3131dc 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -177,7 +177,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) { 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)) {