From 07998f6d750b3223199279b2ef5a48fb9bd61430 Mon Sep 17 00:00:00 2001 From: Sterling Augustine Date: Thu, 17 Mar 2022 19:31:00 -0700 Subject: [PATCH] Correct and complete dependency sets after 74b411d38c48513a125e67e049aca55452b9e855 Prior to this change the __support_cpp_array_ref target's only dependency was libc_root. but it #includes "TypeTraits.h" and Array.h for that matter. These dependencies matter when building in distributed build systems and the relevant files must be know for the distributed build to ship them to the executor. Differential Revision: https://reviews.llvm.org/D121974 --- .../llvm-project-overlay/libc/BUILD.bazel | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index a5d6b8ad3631..ad8bcd0f476c 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -43,7 +43,11 @@ cc_library( cc_library( name = "__support_cpp_array_ref", hdrs = ["src/__support/CPP/ArrayRef.h",], - deps = [":libc_root"], + deps = [ + ":__support_cpp_array", + ":__support_cpp_type_traits", + ":libc_root", + ], ) cc_library( @@ -87,7 +91,10 @@ cc_library( cc_library( name = "__support_cpp_utility", hdrs = ["src/__support/CPP/Utility.h",], - deps = [":libc_root"], + deps = [ + ":__support_cpp_type_traits", + ":libc_root", + ], ) cc_library( @@ -99,7 +106,10 @@ cc_library( cc_library( name = "__support_cpp_atomic", hdrs = ["src/__support/CPP/atomic.h",], - deps = [":libc_root"], + deps = [ + ":__support_cpp_type_traits", + ":libc_root", + ], ) cc_library( @@ -179,6 +189,8 @@ cc_library( hdrs = sqrt_hdrs, deps = [ ":__support_common", + ":__support_cpp_bit", + ":__support_cpp_type_traits", ":__support_fputil", ":libc_root", ],