From: LLVM Packaging Team Date: Tue, 9 Jul 2019 19:04:39 +0000 (+0100) Subject: impl-path-hurd X-Git-Tag: archive/raspbian/1%7.0.1-9+rpi1~35 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b84bcf0e2c01e0ec3eab6dc039253ad92dfacc09;p=llvm-toolchain-7.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 efb7cba0b..51918cb50 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -175,7 +175,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)) {