Skip to content

Conversation

michaelrj-google
Copy link
Contributor

Tests were failing due to a missing dependency on fputil/bfloat16.

Tests were failing due to a missing dependency on fputil/bfloat16.
@llvmbot llvmbot added libc bazel "Peripheral" support tier build system: utils/bazel labels Sep 5, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 5, 2025

@llvm/pr-subscribers-libc

Author: Michael Jones (michaelrj-google)

Changes

Tests were failing due to a missing dependency on fputil/bfloat16.


Full diff: https://github.com/llvm/llvm-project/pull/157149.diff

2 Files Affected:

  • (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+1)
  • (modified) utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel (+6-1)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 5df4394ca5d93..bb76da4153108 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -3751,6 +3751,7 @@ libc_math_function(
 libc_math_function(
     name = "fmodbf16",
     additional_deps = [
+        ":__support_fputil_bfloat16",
         ":__support_fputil_generic_fmod",
     ],
 )
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
index 07d95fb18e883..2bffcdea58478 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
@@ -740,7 +740,12 @@ math_test(
 
 math_test(
     name = "fmodbf16",
-    hdrs = ["FModTest.h"],
+    hdrs = [
+        "FModTest.h",
+    ],
+    deps = [
+        "//libc:__support_fputil_bfloat16",
+    ],
 )
 
 math_test(

@rupprecht rupprecht enabled auto-merge (squash) September 5, 2025 17:54
@rupprecht rupprecht merged commit 1e5ca97 into llvm:main Sep 5, 2025
13 checks passed
@michaelrj-google michaelrj-google deleted the libcBazelfmodbf16 branch September 5, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel libc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants