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

Danial Klimkin via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 01:14:30 PST 2024


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

None

>From a8f351dec0a0e8deeb79f2d92f4cff3dda3fd2d5 Mon Sep 17 00:00:00 2001
From: Danial Klimkin <dklimkin at users.noreply.github.com>
Date: Thu, 25 Jan 2024 10:13:40 +0100
Subject: [PATCH] Fix bazel build past 72ce6294157964042b7ed5576ce2c99257eeea9d

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel           | 6 ++++++
 .../llvm-project-overlay/libc/test/src/math/BUILD.bazel     | 4 ++++
 .../llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel | 1 +
 3 files changed, 11 insertions(+)

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",
     ],
 )



More information about the llvm-commits mailing list