[libc-commits] [libc] dd7f304 - [libc] fix uint includes and libc bazel

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu May 12 11:40:57 PDT 2022


Author: Michael Jones
Date: 2022-05-12T11:40:52-07:00
New Revision: dd7f30464bbf28e9d650b1a2cf2abade14bbb8a1

URL: https://github.com/llvm/llvm-project/commit/dd7f30464bbf28e9d650b1a2cf2abade14bbb8a1
DIFF: https://github.com/llvm/llvm-project/commit/dd7f30464bbf28e9d650b1a2cf2abade14bbb8a1.diff

LOG: [libc] fix uint includes and libc bazel

This patch fixes the includes for the new UInt class so that the api
test now passes, additionally it fixes the bazel files to account for
the new dependencies.

Differential Revision: https://reviews.llvm.org/D125490

Added: 
    

Modified: 
    libc/src/__support/CPP/UInt.h
    utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/CPP/UInt.h b/libc/src/__support/CPP/UInt.h
index e61392a2f40fd..00342b2bf4fb3 100644
--- a/libc/src/__support/CPP/UInt.h
+++ b/libc/src/__support/CPP/UInt.h
@@ -9,7 +9,7 @@
 #ifndef LLVM_LIBC_UTILS_CPP_UINT_H
 #define LLVM_LIBC_UTILS_CPP_UINT_H
 
-#include "src/__support/CPP/Array.h"
+#include "Array.h"
 
 #include <stddef.h> // For size_t
 #include <stdint.h>

diff  --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 13d4740e02271..9c6c1bc8b4a59 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -80,12 +80,20 @@ cc_library(
     deps = [":libc_root"],
 )
 
+cc_library(
+    name = "__support_cpp_uint",
+    hdrs = [
+        "src/__support/CPP/UInt.h",
+    ],
+    deps = [":libc_root","__support_cpp_array"],
+)
+
 cc_library(
     name = "__support_cpp_type_traits",
     hdrs = [
         "src/__support/CPP/TypeTraits.h",
     ],
-    deps = [":libc_root"],
+    deps = [":libc_root","__support_cpp_uint"],
 )
 
 cc_library(


        


More information about the libc-commits mailing list