Skip to content

Commit 688c10d

Browse files
committed
[Bazel][libc] Fix breakage after 837dab9
1 parent 0c0c5c4 commit 688c10d

File tree

2 files changed

+60
-18
lines changed

2 files changed

+60
-18
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ libc_support_library(
8484
"//libc:__support_cpp_bitset",
8585
"//libc:__support_cpp_span",
8686
"//libc:__support_cpp_type_traits",
87+
"//libc:__support_cpp_utility",
8788
"//libc:__support_fputil_fenv_impl",
8889
"//libc:__support_fputil_fp_bits",
8990
"//libc:__support_fputil_fpbits_str",
9091
"//libc:__support_fputil_rounding_mode",
92+
"//libc:__support_macros_properties_architectures",
9193
"//libc:hdr_math_macros",
9294
"//libc:hdr_fenv_macros",
9395
"//libc:types_fenv_t",

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

Lines changed: 58 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ licenses(["notice"])
1212

1313
libc_test(
1414
name = "exception_status_test",
15-
srcs = ["exception_status_test.cpp"],
15+
srcs = [
16+
"exception_status_test.cpp",
17+
"excepts.h",
18+
],
1619
libc_function_deps = [
1720
"//libc:feclearexcept",
1821
"//libc:feraiseexcept",
@@ -21,23 +24,33 @@ libc_test(
2124
],
2225
deps = [
2326
"//libc:__support_fputil_fenv_impl",
24-
"//libc:hdr_fenv_macros",
27+
"//libc:hdr_fenv_macros",
28+
"//libc/test/UnitTest:fp_test_helpers",
2529
],
2630
)
2731

2832
libc_test(
2933
name = "rounding_mode_test",
30-
srcs = ["rounding_mode_test.cpp"],
34+
srcs = [
35+
"excepts.h",
36+
"rounding_mode_test.cpp",
37+
],
3138
libc_function_deps = [
3239
"//libc:fegetround",
3340
"//libc:fesetround",
3441
],
35-
deps = ["//libc:hdr_fenv_macros"],
42+
deps = [
43+
"//libc:hdr_fenv_macros",
44+
"//libc/test/UnitTest:fp_test_helpers",
45+
],
3646
)
3747

3848
libc_test(
3949
name = "enabled_exceptions_test",
40-
srcs = ["enabled_exceptions_test.cpp"],
50+
srcs = [
51+
"enabled_exceptions_test.cpp",
52+
"excepts.h",
53+
],
4154
libc_function_deps = [
4255
"//libc:feclearexcept",
4356
"//libc:feraiseexcept",
@@ -48,14 +61,17 @@ libc_test(
4861
"//libc:__support_common",
4962
"//libc:__support_fputil_fenv_impl",
5063
"//libc:__support_macros_properties_architectures",
64+
"//libc:hdr_fenv_macros",
5165
"//libc/test/UnitTest:fp_test_helpers",
52-
"//libc:hdr_fenv_macros",
5366
],
5467
)
5568

5669
libc_test(
5770
name = "feholdexcept_test",
58-
srcs = ["feholdexcept_test.cpp"],
71+
srcs = [
72+
"excepts.h",
73+
"feholdexcept_test.cpp",
74+
],
5975
libc_function_deps = [
6076
"//libc:feholdexcept",
6177
],
@@ -64,40 +80,53 @@ libc_test(
6480
"//libc:__support_common",
6581
"//libc:__support_fputil_fenv_impl",
6682
"//libc:__support_macros_properties_architectures",
83+
"//libc:hdr_fenv_macros",
84+
"//libc:types_fenv_t",
6785
"//libc/test/UnitTest:fp_test_helpers",
68-
"//libc:types_fenv_t",
6986
],
7087
)
7188

7289
libc_test(
7390
name = "exception_flags_test",
74-
srcs = ["exception_flags_test.cpp"],
91+
srcs = [
92+
"exception_flags_test.cpp",
93+
"excepts.h",
94+
],
7595
libc_function_deps = [
7696
"//libc:fegetexceptflag",
7797
"//libc:fesetexceptflag",
7898
"//libc:fetestexceptflag",
7999
],
80100
deps = [
81101
"//libc:__support_fputil_fenv_impl",
82-
"//libc:types_fexcept_t",
102+
"//libc:hdr_fenv_macros",
103+
"//libc:types_fexcept_t",
104+
"//libc/test/UnitTest:fp_test_helpers",
83105
],
84106
)
85107

86108
libc_test(
87109
name = "feclearexcept_test",
88-
srcs = ["feclearexcept_test.cpp"],
110+
srcs = [
111+
"excepts.h",
112+
"feclearexcept_test.cpp",
113+
],
89114
libc_function_deps = [
90115
"//libc:feclearexcept",
91116
],
92117
deps = [
93118
"//libc:__support_fputil_fenv_impl",
94-
"//libc:hdr_fenv_macros",
119+
"//libc:hdr_fenv_macros",
120+
"//libc/test/UnitTest:fp_test_helpers",
95121
],
96122
)
97123

98124
libc_test(
99125
name = "feenableexcept_test",
100-
srcs = ["feenableexcept_test.cpp"],
126+
srcs = [
127+
"excepts.h",
128+
"feenableexcept_test.cpp",
129+
],
101130
libc_function_deps = [
102131
"//libc:fedisableexcept",
103132
"//libc:feenableexcept",
@@ -106,25 +135,34 @@ libc_test(
106135
deps = [
107136
"//libc:__support_common",
108137
"//libc:__support_macros_properties_architectures",
109-
"//libc:hdr_fenv_macros",
138+
"//libc:hdr_fenv_macros",
139+
"//libc/test/UnitTest:fp_test_helpers",
110140
],
111141
)
112142

113143
libc_test(
114144
name = "feupdateenv_test",
115-
srcs = ["feupdateenv_test.cpp"],
145+
srcs = [
146+
"excepts.h",
147+
"feupdateenv_test.cpp",
148+
],
116149
libc_function_deps = [
117150
"//libc:feupdateenv",
118151
],
119152
deps = [
120153
"//libc:__support_fputil_fenv_impl",
121-
"//libc:types_fenv_t",
154+
"//libc:hdr_fenv_macros",
155+
"//libc:types_fenv_t",
156+
"//libc/test/UnitTest:fp_test_helpers",
122157
],
123158
)
124159

125160
libc_test(
126161
name = "getenv_and_setenv_test",
127-
srcs = ["getenv_and_setenv_test.cpp"],
162+
srcs = [
163+
"excepts.h",
164+
"getenv_and_setenv_test.cpp",
165+
],
128166
libc_function_deps = [
129167
"//libc:fegetenv",
130168
"//libc:fegetround",
@@ -133,6 +171,8 @@ libc_test(
133171
],
134172
deps = [
135173
"//libc:__support_fputil_fenv_impl",
136-
"//libc:types_fenv_t",
174+
"//libc:hdr_fenv_macros",
175+
"//libc:types_fenv_t",
176+
"//libc/test/UnitTest:fp_test_helpers",
137177
],
138178
)

0 commit comments

Comments
 (0)