[llvm] [Support] Only enable use of /proc/self/fd on Linux (PR #222497)

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 01:33:38 PDT 2026


================
@@ -1027,11 +1027,7 @@ ErrorOr<basic_file_status> directory_entry::status() const {
   return s;
 }
 
-//
-// FreeBSD optionally provides /proc/self/fd, but it is incompatible with
-// Linux. The thing to use is realpath.
-//
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
+#if defined(__linux__)
----------------
brad0 wrote:

They're not supported. That's the point.

https://github.com/llvm/llvm-project/pull/222497


More information about the llvm-commits mailing list