From 710cd9548c1bb7d7d02e453828bcfe4f76c680cc Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 7 Mar 2025 13:14:37 -0800 Subject: [PATCH] [libc][bazel] Minor cleanup to remove unused dependencies. * strcpy doesn't need to depend on memcpy * qsort_test_helper has been generalized and doesn't need to depend on qsort. This is a small cleanup to unblock the work outlined in #130327. --- libc/test/src/stdlib/SortingTest.h | 1 - utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 1 - .../bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel | 1 - 3 files changed, 3 deletions(-) diff --git a/libc/test/src/stdlib/SortingTest.h b/libc/test/src/stdlib/SortingTest.h index 681a420ea7274..d845280aaa27e 100644 --- a/libc/test/src/stdlib/SortingTest.h +++ b/libc/test/src/stdlib/SortingTest.h @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "src/__support/macros/config.h" -#include "src/stdlib/qsort.h" #include "test/UnitTest/Test.h" class SortingTest : public LIBC_NAMESPACE::testing::Test { diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 4b0fec6473b67..61de1aa7f2abe 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -4270,7 +4270,6 @@ libc_function( hdrs = ["src/string/strcpy.h"], deps = [ ":__support_common", - ":memcpy", ":string_memory_utils", ":string_utils", ], diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel index 73685ede41e85..7d9ff25ae69e4 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel @@ -115,7 +115,6 @@ libc_support_library( hdrs = ["SortingTest.h"], deps = [ "//libc:__support_macros_config", - "//libc:qsort", "//libc/test/UnitTest:LibcUnitTest", ], )