[libc][bazel] Update math function unit tests' dependency computation.
authorTue Ly <lntue@google.com>
Mon, 13 Feb 2023 20:52:51 +0000 (15:52 -0500)
committerTue Ly <lntue@google.com>
Mon, 13 Feb 2023 20:52:51 +0000 (15:52 -0500)
utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl

index 0394da505c49821fbba8fa7e7e80480d10986687..233bc15de2473f25dd27c9ce904736e36d5d9f96 100644 (file)
@@ -23,7 +23,7 @@ def math_test(name, hdrs = [], deps = [], **kwargs):
     libc_test(
         name = test_name,
         srcs = [test_name + ".cpp"] + hdrs,
-        libc_function_deps = ["//libc:" + name],
+        libc_function_deps = ["//libc:func_name".replace("func_name", name)],
         deps = [
             "//libc:__support_fputil_basic_operations",
             "//libc:__support_builtin_wrappers",