Skip to content

Commit a4320ba

Browse files
authored
[bazel] fix libc bazel build broken by ff844df. (#142848)
Fixes `bazelisk test @llvm-project//libc/test/src/string/...`
1 parent 50c5704 commit a4320ba

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4210,6 +4210,7 @@ libc_function(
42104210
hdrs = ["src/string/memchr.h"],
42114211
deps = [
42124212
":__support_common",
4213+
":__support_macros_null_check",
42134214
":string_utils",
42144215
],
42154216
)
@@ -4220,6 +4221,7 @@ libc_function(
42204221
hdrs = ["src/string/memcpy.h"],
42214222
deps = [
42224223
":__support_common",
4224+
":__support_macros_null_check",
42234225
":string_memory_utils",
42244226
],
42254227
)
@@ -4230,6 +4232,7 @@ libc_function(
42304232
hdrs = ["src/string/memset.h"],
42314233
deps = [
42324234
":__support_common",
4235+
":__support_macros_null_check",
42334236
":string_memory_utils",
42344237
],
42354238
)
@@ -4240,6 +4243,7 @@ libc_function(
42404243
hdrs = ["src/string/memmove.h"],
42414244
deps = [
42424245
":__support_common",
4246+
":__support_macros_null_check",
42434247
":string_memory_utils",
42444248
],
42454249
)
@@ -4250,6 +4254,7 @@ libc_function(
42504254
hdrs = ["src/string/mempcpy.h"],
42514255
deps = [
42524256
":__support_common",
4257+
":__support_macros_null_check",
42534258
":string_memory_utils",
42544259
],
42554260
)
@@ -4271,6 +4276,7 @@ libc_function(
42714276
deps = [
42724277
":__support_common",
42734278
":__support_integer_operations",
4279+
":__support_macros_null_check",
42744280
":string_memory_utils",
42754281
],
42764282
)
@@ -4301,6 +4307,7 @@ libc_function(
43014307
hdrs = ["src/string/memrchr.h"],
43024308
deps = [
43034309
":__support_common",
4310+
":__support_macros_null_check",
43044311
":string_utils",
43054312
],
43064313
)
@@ -4311,6 +4318,7 @@ libc_function(
43114318
hdrs = ["src/string/strlen.h"],
43124319
deps = [
43134320
":__support_common",
4321+
":__support_macros_null_check",
43144322
":string_utils",
43154323
],
43164324
)
@@ -4321,6 +4329,7 @@ libc_function(
43214329
hdrs = ["src/string/strcpy.h"],
43224330
deps = [
43234331
":__support_common",
4332+
":__support_macros_null_check",
43244333
":string_memory_utils",
43254334
":string_utils",
43264335
],
@@ -4372,6 +4381,7 @@ libc_function(
43724381
hdrs = ["src/string/strstr.h"],
43734382
deps = [
43744383
":__support_common",
4384+
":__support_macros_null_check",
43754385
":string_memory_utils",
43764386
":string_utils",
43774387
],
@@ -4404,6 +4414,7 @@ libc_function(
44044414
deps = [
44054415
":__support_common",
44064416
":__support_cpp_bitset",
4417+
":__support_macros_null_check",
44074418
":string_utils",
44084419
],
44094420
)

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ libc_test(
2222
name = "strcpy_test",
2323
srcs = ["strcpy_test.cpp"],
2424
deps = [
25+
"//libc:hdr_signal_macros",
2526
"//libc:strcpy",
2627
],
2728
)
@@ -38,6 +39,7 @@ libc_test(
3839
name = "memchr_test",
3940
srcs = ["memchr_test.cpp"],
4041
deps = [
42+
"//libc:hdr_signal_macros",
4143
"//libc:memchr",
4244
],
4345
)
@@ -77,6 +79,7 @@ libc_test(
7779
name = "memrchr_test",
7880
srcs = ["memrchr_test.cpp"],
7981
deps = [
82+
"//libc:hdr_signal_macros",
8083
"//libc:memrchr",
8184
],
8285
)
@@ -102,6 +105,7 @@ libc_test(
102105
name = "strspn_test",
103106
srcs = ["strspn_test.cpp"],
104107
deps = [
108+
"//libc:hdr_signal_macros",
105109
"//libc:strspn",
106110
],
107111
)
@@ -142,6 +146,7 @@ libc_test(
142146
":memory_check_utils",
143147
":protected_pages",
144148
"//libc:__support_macros_properties_os",
149+
"//libc:hdr_signal_macros",
145150
"//libc:memcpy",
146151
],
147152
)
@@ -150,6 +155,7 @@ libc_test(
150155
name = "mempcpy_test",
151156
srcs = ["mempcpy_test.cpp"],
152157
deps = [
158+
"//libc:hdr_signal_macros",
153159
"//libc:mempcpy",
154160
],
155161
)
@@ -161,6 +167,7 @@ libc_test(
161167
":memory_check_utils",
162168
":protected_pages",
163169
"//libc:__support_macros_properties_os",
170+
"//libc:hdr_signal_macros",
164171
"//libc:memset",
165172
],
166173
)
@@ -171,6 +178,7 @@ libc_test(
171178
deps = [
172179
":memory_check_utils",
173180
"//libc:__support_cpp_span",
181+
"//libc:hdr_signal_macros",
174182
"//libc:memcmp",
175183
"//libc:memmove",
176184
"//libc/test/UnitTest:memory_matcher",
@@ -182,6 +190,7 @@ libc_test(
182190
srcs = ["memcmp_test.cpp"],
183191
deps = [
184192
":memory_check_utils",
193+
"//libc:hdr_signal_macros",
185194
"//libc:memcmp",
186195
"//libc/test/UnitTest:test_logger",
187196
],

0 commit comments

Comments
 (0)