Skip to content

Commit 3d91cae

Browse files
committed
[bazel][libc] Adjust for 4f1fe19
This also required a build rule for error_to_string, so add that too.
1 parent e1d1cd4 commit 3d91cae

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

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

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ libc_support_library(
226226
],
227227
)
228228

229+
libc_support_library(
230+
name = "__support_cpp_stringstream",
231+
hdrs = ["src/__support/CPP/stringstream.h"],
232+
deps = [
233+
":__support_cpp_span",
234+
":__support_cpp_string_view",
235+
":__support_cpp_type_traits",
236+
":__support_integer_to_string",
237+
],
238+
)
239+
229240
libc_support_library(
230241
name = "__support_cpp_string",
231242
hdrs = ["src/__support/CPP/string.h"],
@@ -805,6 +816,28 @@ libc_support_library(
805816
],
806817
)
807818

819+
libc_support_library(
820+
name = "__support_stringutil",
821+
srcs = glob(["src/__support/StringUtil/tables/**/*.h"]) + [
822+
"src/__support/StringUtil/error_to_string.cpp",
823+
"src/__support/StringUtil/message_mapper.h",
824+
"src/__support/StringUtil/signal_to_string.cpp",
825+
],
826+
hdrs = [
827+
"src/__support/StringUtil/error_to_string.h",
828+
"src/__support/StringUtil/signal_to_string.h",
829+
],
830+
deps = [
831+
":__support_cpp_array",
832+
":__support_cpp_span",
833+
":__support_cpp_string_view",
834+
":__support_cpp_stringstream",
835+
":__support_integer_to_string",
836+
":errno",
837+
":libc_root",
838+
],
839+
)
840+
808841
libc_support_library(
809842
name = "__support_threads_mutex",
810843
hdrs = [

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ cc_library(
2929
"LibcTestMain.cpp",
3030
],
3131
hdrs = [
32+
"ErrnoSetterMatcher.h",
3233
"ExecuteFunction.h",
3334
"LibcTest.h",
3435
"PlatformDefs.h",
@@ -43,7 +44,11 @@ cc_library(
4344
"//libc:__support_cpp_string",
4445
"//libc:__support_cpp_string_view",
4546
"//libc:__support_cpp_type_traits",
47+
"//libc:__support_fputil_fp_bits",
48+
"//libc:__support_macros_properties_architectures",
49+
"//libc:__support_stringutil",
4650
"//libc:__support_uint128",
51+
"//libc:errno",
4752
"//libc:libc_root",
4853
"//llvm:Support",
4954
],

0 commit comments

Comments
 (0)