[llvm] [Bazel] Fixes 7cea026 (PR #196033)

via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 02:42:02 PDT 2026


https://github.com/forking-google-bazel-bot[bot] created https://github.com/llvm/llvm-project/pull/196033

This fixes 7cea026109ab3308cafae38dc5b1b89d8770fdab.



>From 54b4da5e6b1093d5b971adac1cc97c47bf9f09ea Mon Sep 17 00:00:00 2001
From: Google Bazel Bot <google-bazel-bot at google.com>
Date: Wed, 6 May 2026 09:41:51 +0000
Subject: [PATCH] Fix Bazel build for 7cea026

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel     | 11 +++++++++++
 .../libc/test/src/sys/socket/BUILD.bazel              |  5 +++++
 2 files changed, 16 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index dc281f5ea4449..07f5df7bf07f3 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1000,6 +1000,17 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "__support_cpp_scope",
+    hdrs = ["src/__support/CPP/scope.h"],
+    deps = [
+        ":__support_cpp_type_traits",
+        ":__support_cpp_utility",
+        ":__support_macros_attributes",
+        ":__support_macros_config",
+    ],
+)
+
 libc_support_library(
     name = "__support_cpp_simd",
     hdrs = ["src/__support/CPP/simd.h"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/BUILD.bazel
index 46aa41ebf7129..3cf290a9f0a8f 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/sys/socket/BUILD.bazel
@@ -14,6 +14,7 @@ libc_test(
     name = "socket_test",
     srcs = ["linux/socket_test.cpp"],
     deps = [
+        "//libc:__support_cpp_scope",
         "//libc:close",
         "//libc:socket",
     ],
@@ -23,6 +24,7 @@ libc_test(
     name = "socketpair_test",
     srcs = ["linux/socketpair_test.cpp"],
     deps = [
+        "//libc:__support_cpp_scope",
         "//libc:close",
         "//libc:socketpair",
     ],
@@ -32,6 +34,7 @@ libc_test(
     name = "send_recv_test",
     srcs = ["linux/send_recv_test.cpp"],
     deps = [
+        "//libc:__support_cpp_scope",
         "//libc:close",
         "//libc:hdr_sys_socket_macros",
         "//libc:recv",
@@ -44,6 +47,7 @@ libc_test(
     name = "sendto_recvfrom_test",
     srcs = ["linux/sendto_recvfrom_test.cpp"],
     deps = [
+        "//libc:__support_cpp_scope",
         "//libc:close",
         "//libc:recvfrom",
         "//libc:sendto",
@@ -55,6 +59,7 @@ libc_test(
     name = "sendmsg_recvmsg_test",
     srcs = ["linux/sendmsg_recvmsg_test.cpp"],
     deps = [
+        "//libc:__support_cpp_scope",
         "//libc:close",
         "//libc:fcntl",
         "//libc:getsockopt",



More information about the llvm-commits mailing list