[llvm] [libc] Fix bazel build (PR #81980)

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 02:57:36 PST 2024


https://github.com/gchatelet updated https://github.com/llvm/llvm-project/pull/81980

>From c42c92d47e353d11bf8a23984cc068258c28fbe0 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Fri, 16 Feb 2024 10:52:02 +0000
Subject: [PATCH 1/2] [libc] Fix bazel build

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel            | 5 +++++
 .../llvm-project-overlay/libc/test/UnitTest/BUILD.bazel      | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 1518d7910299d0..1998c95dcbe9c5 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -891,6 +891,11 @@ libc_support_library(
     ],
 )
 
+libc_support_library(
+    name = "__support_fixed_point_fx_rep",
+    hdrs = ["src/__support/fixed_point/fx_rep.h"],
+)
+
 libc_support_library(
     name = "__support_osutil_syscall",
     hdrs = ["src/__support/OSUtil/syscall.h"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
index cffaa27d1df18e..fd4bf4a4db74cc 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel
@@ -46,6 +46,7 @@ libc_support_library(
         "//libc:__support_cpp_string",
         "//libc:__support_cpp_string_view",
         "//libc:__support_cpp_type_traits",
+        "//libc:__support_fixed_point_fx_rep",
         "//libc:__support_fputil_fp_bits",
         "//libc:__support_fputil_fpbits_str",
         "//libc:__support_fputil_rounding_mode",
@@ -53,6 +54,7 @@ libc_support_library(
         "//libc:__support_stringutil",
         "//libc:__support_uint128",
         "//libc:errno",
+        "//libc:llvm_libc_macros_stdfix_macros",
         "//llvm:Support",
     ],
 )

>From 6d57475089d6a6e37378132e3203719734dfa750 Mon Sep 17 00:00:00 2001
From: Guillaume Chatelet <gchatelet at google.com>
Date: Fri, 16 Feb 2024 10:57:21 +0000
Subject: [PATCH 2/2] update missing dependencies for header declaration

---
 utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 1998c95dcbe9c5..d02e81e023c484 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -894,6 +894,11 @@ libc_support_library(
 libc_support_library(
     name = "__support_fixed_point_fx_rep",
     hdrs = ["src/__support/fixed_point/fx_rep.h"],
+    deps = [
+        ":__support_cpp_type_traits",
+        ":__support_macros_attributes",
+        ":llvm_libc_macros_stdfix_macros",
+    ],
 )
 
 libc_support_library(



More information about the llvm-commits mailing list