diff --git a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl --- a/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl +++ b/utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl @@ -24,10 +24,11 @@ deps: The list of other libraries to be linked in to the test target. **kwargs: Attributes relevant for a cc_test. For example, name, srcs. """ + all_function_deps = libc_function_deps + ["//libc:errno"] native.cc_test( name = name, srcs = srcs, - deps = [d + INTERNAL_SUFFIX for d in libc_function_deps] + [ + deps = [d + INTERNAL_SUFFIX for d in all_function_deps] + [ "//libc:libc_root", "//libc/test/UnitTest:LibcUnitTest", ] + deps, diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl --- a/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl +++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl @@ -33,7 +33,6 @@ "//libc:__support_fputil_manipulation_functions", "//libc:__support_fputil_nearest_integer_operations", "//libc:__support_uint128", - "//libc:errno", "//libc/test/UnitTest:fp_test_helpers", ] + deps, **kwargs 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 --- a/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel @@ -54,7 +54,6 @@ ], deps = [ "//libc:__support_fputil_fp_bits", - "//libc:errno", ], ) @@ -80,7 +79,6 @@ deps = [ "//libc:__support_cpp_limits", "//libc:__support_cpp_type_traits", - "//libc:errno", "//libc/test/UnitTest:LibcUnitTest", ], ) @@ -129,7 +127,6 @@ ], deps = [ "//libc:__support_fputil_fp_bits", - "//libc:errno", "//libc/utils/testutils:libc_test_utils", ], ) @@ -142,7 +139,6 @@ ], deps = [ "//libc:__support_fputil_fp_bits", - "//libc:errno", "//libc/utils/testutils:libc_test_utils", ], ) @@ -156,6 +152,5 @@ deps = [ "//libc:__support_fputil_fp_bits", "//libc:__support_uint128", - "//libc:errno", ], )