[llvm] [Bazel][libc] Update platform_file to depend on dup3 (PR #229595)

Anshul Nigham via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 15:46:36 PDT 2026


https://github.com/nigham created https://github.com/llvm/llvm-project/pull/229595

Fixes bazel build failure introduced in commit 64d83dcba1cb, where file.cpp switched from using dup2 to dup3.

>From c63373c53a6859f1bc045b7973551d1253b84e85 Mon Sep 17 00:00:00 2001
From: Anshul Nigham <nigham at google.com>
Date: Tue, 6 Oct 2026 15:45:29 -0700
Subject: [PATCH] [Bazel][libc] Update platform_file to depend on dup3

Fixes bazel build failure introduced in commit 64d83dcba1cb, where
file.cpp switched from using dup2 to dup3.
---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 89b4dde68bc3f54..4998a3f385dd507 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -2372,7 +2372,7 @@ libc_support_library(
         ":__support_macros_attributes",
         ":__support_macros_config",
         ":__support_osutil_linux_syscall_wrappers_close",
-        ":__support_osutil_linux_syscall_wrappers_dup2",
+        ":__support_osutil_linux_syscall_wrappers_dup3",
         ":__support_osutil_linux_syscall_wrappers_fcntl",
         ":__support_osutil_linux_syscall_wrappers_lseek",
         ":__support_osutil_linux_syscall_wrappers_open",



More information about the llvm-commits mailing list