[libc-commits] [PATCH] D125490: [libc] fix uint includes and libc bazel

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 12 11:41:17 PDT 2022


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdd7f30464bbf: [libc] fix uint includes and libc bazel (authored by michaelrj).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125490/new/

https://reviews.llvm.org/D125490

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


Index: utils/bazel/llvm-project-overlay/libc/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -80,12 +80,20 @@
     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(
Index: libc/src/__support/CPP/UInt.h
===================================================================
--- libc/src/__support/CPP/UInt.h
+++ 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>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125490.429036.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220512/ea72b66c/attachment.bin>


More information about the libc-commits mailing list