[llvm] [Bazel] Fixes 09cdef0 (PR #227345)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 29 09:52:12 PDT 2026


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/227345

>From 84fa4205fc46674ac95ed3ed72ac8ff63acac6c0 Mon Sep 17 00:00:00 2001
From: Google Bazel Bot <google-bazel-bot at google.com>
Date: Tue, 29 Sep 2026 15:26:12 +0000
Subject: [PATCH] Fix Bazel build for 09cdef0

Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=09cdef016cfc756b29002cd7870c63b7f1b09c6b
---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel  | 14 ++++++++++++--
 .../libc/test/src/math/BUILD.bazel                 |  2 ++
 .../libc/test/src/math/libc_math_test_rules.bzl    |  1 +
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 72a3e709e4af4..17ac7ec18f341 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -8342,8 +8342,13 @@ libc_support_library(
 
 libc_support_library(
     name = "__support_math_cosf",
-    hdrs = ["src/__support/math/cosf.h"],
+    hdrs = [
+        "src/__support/math/cosf.h",
+        "src/__support/math/cosf_double_eval.h",
+        "src/__support/math/cosf_float_eval.h",
+    ],
     deps = [
+        ":__support_common",
         ":__support_fputil_except_value_utils",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fp_bits",
@@ -10862,8 +10867,13 @@ libc_support_library(
 
 libc_support_library(
     name = "__support_math_sinf",
-    hdrs = ["src/__support/math/sinf.h"],
+    hdrs = [
+        "src/__support/math/sinf.h",
+        "src/__support/math/sinf_double_eval.h",
+        "src/__support/math/sinf_float_eval.h",
+    ],
     deps = [
+        ":__support_common",
         ":__support_fputil_basic_operations",
         ":__support_fputil_fenv_impl",
         ":__support_fputil_fma",
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
index f9d21bcabeaa5..167d35ec0f269 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
@@ -116,6 +116,7 @@ math_mpfr_test(
     hdrs = ["sdcomp26094.h"],
     deps = [
         "//libc:__support_cpp_array",
+        "//libc:__support_math_cosf",
     ],
 )
 
@@ -772,6 +773,7 @@ math_mpfr_test(
     hdrs = ["sdcomp26094.h"],
     deps = [
         "//libc:__support_cpp_array",
+        "//libc:__support_math_sinf",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
index adaf36c2f0f9b..822297bb5ae90 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
@@ -37,6 +37,7 @@ def math_test(name, hdrs = [], deps = [], **kwargs):
             "//libc:__support_fputil_normal_float",
             "//libc:__support_macros_optimization",
             "//libc:__support_macros_properties_architectures",
+            "//libc:__support_macros_properties_cpu_features",
             "//libc:__support_macros_properties_os",
             "//libc:__support_macros_properties_types",
             "//libc:__support_math_extras",



More information about the llvm-commits mailing list