Skip to content

Commit 310c377

Browse files
[libc][bazel] Rephrase list comp for downstream (#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.
1 parent 9a54c77 commit 310c377

File tree

1 file changed

+4
-1
lines changed
  • utils/bazel/llvm-project-overlay/libc/test/src/stdbit

1 file changed

+4
-1
lines changed

utils/bazel/llvm-project-overlay/libc/test/src/stdbit/BUILD.bazel

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ bit_prefix_list = [
3939
libc_test(
4040
name = bit_prefix + bit_suffix + "_test",
4141
srcs = [bit_prefix + bit_suffix + "_test.cpp"],
42-
libc_function_deps = ["//libc:" + bit_prefix + bit_suffix],
42+
libc_function_deps = ["//libc:func_name".replace(
43+
"func_name",
44+
bit_prefix + bit_suffix,
45+
)],
4346
deps = ["//libc:__support_cpp_limits"],
4447
)
4548
for bit_prefix in bit_prefix_list

0 commit comments

Comments
 (0)