From 3d2fab425f523452ffb440a5dd9f2d0775afc570 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sun, 21 Apr 2019 21:55:47 +0100 Subject: [PATCH] impl-path-hurd =================================================================== Gbp-Pq: Topic hurd Gbp-Pq: Name impl-path-hurd.diff --- lib/Support/Unix/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.30.2