blob: 1785ad44e1e524e5a9eb0f23403ec29bc8213e8e [file] [log] [blame]
From a3a1aa198d4f52d3a64fe58d6ca03b103b6f6474 Mon Sep 17 00:00:00 2001
From: Jordan R Abrahams-Whitehead <ajordanr@google.com>
Date: Fri, 14 Jun 2024 21:02:42 +0000
Subject: [PATCH] llvm-8.0-clang-executable-detection.v2
This is to fix crbug/591436, which is a blocker on using clang for
simple-chrome.
---
llvm/lib/Support/Unix/Path.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 68ca58fda3b8..92ea04987256 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -253,7 +253,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
#elif defined(__linux__) || defined(__CYGWIN__) || defined(__gnu_hurd__)
char exe_path[PATH_MAX];
const char *aPath = "/proc/self/exe";
- if (sys::fs::exists(aPath)) {
+ if (false && sys::fs::exists(aPath)) {
// /proc is not always mounted under Linux (chroot for example).
ssize_t len = readlink(aPath, exe_path, sizeof(exe_path));
if (len < 0)
--
2.45.2.627.g7a2c4fd464-goog