[llvm] [libc][bazel] Rephrase list comp for downstream (PR #129119)
Michael Jones via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 13:11:02 PST 2025
https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/129119
The downstream build was having trouble transforming the previous list
comprehension, but it works on this one. I guess it just needs to look
like a proper target.
>From 7c4cb54f306bbade08ad63a203c2b1ded59638d5 Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Thu, 27 Feb 2025 13:09:29 -0800
Subject: [PATCH] [libc][bazel] Rephrase list comp for downstream
The downstream build was having trouble transforming the previous list
comprehension, but it works on this one. I guess it just needs to look
like a proper target.
---
.../llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel
index e7ddbdf41e517..b9d153947dc7d 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel
@@ -39,7 +39,10 @@ bit_prefix_list = [
libc_test(
name = bit_prefix + bit_suffix + "_test",
srcs = [bit_prefix + bit_suffix + "_test.cpp"],
- libc_function_deps = ["//libc:" + bit_prefix + bit_suffix],
+ libc_function_deps = ["//libc:func_name".replace(
+ "func_name",
+ bit_prefix + bit_suffix,
+ )],
deps = ["//libc:__support_cpp_limits"],
)
for bit_prefix in bit_prefix_list
More information about the llvm-commits
mailing list