[libc-commits] [libc] d90423e - [libc][bazel] Minor cleanup to remove unused dependencies. (#130348)
via libc-commits
libc-commits at lists.llvm.org
Fri Mar 7 13:31:21 PST 2025
Author: Alexey Samsonov
Date: 2025-03-07T13:31:18-08:00
New Revision: d90423e310482bdbc731242fa25dcb3dd44e69de
URL: https://github.com/llvm/llvm-project/commit/d90423e310482bdbc731242fa25dcb3dd44e69de
DIFF: https://github.com/llvm/llvm-project/commit/d90423e310482bdbc731242fa25dcb3dd44e69de.diff
LOG: [libc][bazel] Minor cleanup to remove unused dependencies. (#130348)
* 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.
Added:
Modified:
libc/test/src/stdlib/SortingTest.h
utils/bazel/llvm-project-overlay/libc/BUILD.bazel
utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
Removed:
################################################################################
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",
],
)
More information about the libc-commits
mailing list