[llvm] Fix bazel build past 72ce6294157964042b7ed5576ce2c99257eeea9d (PR #79424)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 01:15:00 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Danial Klimkin (dklimkin)

<details>
<summary>Changes</summary>



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


3 Files Affected:

- (modified) utils/bazel/llvm-project-overlay/libc/BUILD.bazel (+6) 
- (modified) utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel (+4) 
- (modified) utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel (+1) 


``````````diff
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 6fa47c0090b87ac..3ffe6f1e1a37829 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -210,6 +210,7 @@ libc_support_library(
     deps = [
         "__support_cpp_type_traits",
         "__support_macros_attributes",
+        ":llvm_libc_macros_limits_macros",
     ],
 )
 
@@ -955,6 +956,11 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "llvm_libc_macros_limits_macros",
+    hdrs = ["include/llvm-libc-macros/limits-macros.h"],
+)
+
 ############################### errno targets ################################
 
 libc_function(
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 22df9fa494ead24..8ccaca7fd4c23c8 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
@@ -345,6 +345,7 @@ libc_support_library(
     name = "ldexp_test_template",
     hdrs = ["LdExpTest.h"],
     deps = [
+        "//libc:__support_cpp_limits",
         "//libc:__support_fputil_fp_bits",
         "//libc:__support_fputil_normal_float",
         "//libc/test/UnitTest:LibcUnitTest",
@@ -783,6 +784,7 @@ math_test(
         "LdExpTest.h",
         "ScalbnTest.h",
     ],
+    deps = ["//libc:__support_cpp_limits"],
 )
 
 math_test(
@@ -791,6 +793,7 @@ math_test(
         "LdExpTest.h",
         "ScalbnTest.h",
     ],
+    deps = ["//libc:__support_cpp_limits"],
 )
 
 math_test(
@@ -799,4 +802,5 @@ math_test(
         "LdExpTest.h",
         "ScalbnTest.h",
     ],
+    deps = ["//libc:__support_cpp_limits"],
 )
diff --git a/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
index 564af38c20e0c66..3ebae21f585a6f5 100644
--- a/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
@@ -47,6 +47,7 @@ libc_support_library(
         "//libc:__support_fputil_fp_bits",
         "//libc:__support_fputil_fpbits_str",
         "//libc/test/UnitTest:fp_test_helpers",
+        "//libc/test/UnitTest:LibcUnitTest",
         "//libc/utils/MPFRWrapper:mpfr_impl",
     ],
 )

``````````

</details>


https://github.com/llvm/llvm-project/pull/79424


More information about the llvm-commits mailing list