[llvm] [libc] Fix lseek in bazel (PR #65542)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 15:20:18 PDT 2023
https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/65542:
A previous patch moved the implementation of lseek to a new shared impl file but forgot to update the bazel. This patch fixes that.
>From 1cb0cc64dd73bada9077650cfb1214dca4b3bb9a Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Wed, 6 Sep 2023 15:05:07 -0700
Subject: [PATCH] [libc] Fix lseek in bazel
A previous patch moved the implementation of lseek to a new shared impl
file but forgot to update the bazel. This patch fixes that.
---
utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index bdf260a783baa2b..7be2cd2095fdde6 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -570,6 +570,18 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "__support_file_linux_lseek_impl",
+ hdrs = ["src/__support/File/linux/lseekImpl.h"],
+ deps = [
+ ":__support_error_or",
+ ":__support_osutil_syscall",
+ ":__support_threads_mutex",
+ ":errno",
+ ":libc_root",
+ ],
+)
+
libc_support_library(
name = "__support_named_pair",
hdrs = ["src/__support/named_pair.h"],
@@ -2533,6 +2545,7 @@ libc_function(
hdrs = ["src/unistd/lseek.h"],
deps = [
":__support_common",
+ ":__support_file_linux_lseek_impl",
":__support_osutil_syscall",
":errno",
],
More information about the llvm-commits
mailing list