Skip to content

Commit 1f6427a

Browse files
[libc] add mempcpy to bazel overlay (#75383)
We'd like to begin overlaying mempcpy.
1 parent 8ecbb04 commit 1f6427a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,6 +2274,19 @@ libc_function(
22742274
],
22752275
)
22762276

2277+
libc_function(
2278+
name = "mempcpy",
2279+
srcs = ["src/string/mempcpy.cpp"],
2280+
hdrs = ["src/string/mempcpy.h"],
2281+
copts = ["-mllvm --tail-merge-threshold=0"],
2282+
features = no_sanitize_features,
2283+
weak = True,
2284+
deps = [
2285+
":__support_common",
2286+
":string_memory_utils",
2287+
],
2288+
)
2289+
22772290
libc_function(
22782291
name = "bcopy",
22792292
srcs = ["src/string/bcopy.cpp"],

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ libc_test(
135135
deps = [":memory_check_utils"],
136136
)
137137

138+
libc_test(
139+
name = "mempcpy_test",
140+
srcs = ["mempcpy_test.cpp"],
141+
libc_function_deps = [
142+
"//libc:mempcpy",
143+
],
144+
)
145+
138146
libc_test(
139147
name = "memset_test",
140148
srcs = ["memset_test.cpp"],

0 commit comments

Comments
 (0)