Skip to content

Commit

Permalink
[Bazel][libc] Fix breakage after 837dab9
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavk committed Apr 23, 2024
1 parent 0c0c5c4 commit 688c10d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,12 @@ libc_support_library(
"//libc:__support_cpp_bitset",
"//libc:__support_cpp_span",
"//libc:__support_cpp_type_traits",
"//libc:__support_cpp_utility",
"//libc:__support_fputil_fenv_impl",
"//libc:__support_fputil_fp_bits",
"//libc:__support_fputil_fpbits_str",
"//libc:__support_fputil_rounding_mode",
"//libc:__support_macros_properties_architectures",
"//libc:hdr_math_macros",
"//libc:hdr_fenv_macros",
"//libc:types_fenv_t",
Expand Down
76 changes: 58 additions & 18 deletions utils/bazel/llvm-project-overlay/libc/test/src/fenv/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ licenses(["notice"])

libc_test(
name = "exception_status_test",
srcs = ["exception_status_test.cpp"],
srcs = [
"exception_status_test.cpp",
"excepts.h",
],
libc_function_deps = [
"//libc:feclearexcept",
"//libc:feraiseexcept",
Expand All @@ -21,23 +24,33 @@ libc_test(
],
deps = [
"//libc:__support_fputil_fenv_impl",
"//libc:hdr_fenv_macros",
"//libc:hdr_fenv_macros",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "rounding_mode_test",
srcs = ["rounding_mode_test.cpp"],
srcs = [
"excepts.h",
"rounding_mode_test.cpp",
],
libc_function_deps = [
"//libc:fegetround",
"//libc:fesetround",
],
deps = ["//libc:hdr_fenv_macros"],
deps = [
"//libc:hdr_fenv_macros",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "enabled_exceptions_test",
srcs = ["enabled_exceptions_test.cpp"],
srcs = [
"enabled_exceptions_test.cpp",
"excepts.h",
],
libc_function_deps = [
"//libc:feclearexcept",
"//libc:feraiseexcept",
Expand All @@ -48,14 +61,17 @@ libc_test(
"//libc:__support_common",
"//libc:__support_fputil_fenv_impl",
"//libc:__support_macros_properties_architectures",
"//libc:hdr_fenv_macros",
"//libc/test/UnitTest:fp_test_helpers",
"//libc:hdr_fenv_macros",
],
)

libc_test(
name = "feholdexcept_test",
srcs = ["feholdexcept_test.cpp"],
srcs = [
"excepts.h",
"feholdexcept_test.cpp",
],
libc_function_deps = [
"//libc:feholdexcept",
],
Expand All @@ -64,40 +80,53 @@ libc_test(
"//libc:__support_common",
"//libc:__support_fputil_fenv_impl",
"//libc:__support_macros_properties_architectures",
"//libc:hdr_fenv_macros",
"//libc:types_fenv_t",
"//libc/test/UnitTest:fp_test_helpers",
"//libc:types_fenv_t",
],
)

libc_test(
name = "exception_flags_test",
srcs = ["exception_flags_test.cpp"],
srcs = [
"exception_flags_test.cpp",
"excepts.h",
],
libc_function_deps = [
"//libc:fegetexceptflag",
"//libc:fesetexceptflag",
"//libc:fetestexceptflag",
],
deps = [
"//libc:__support_fputil_fenv_impl",
"//libc:types_fexcept_t",
"//libc:hdr_fenv_macros",
"//libc:types_fexcept_t",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "feclearexcept_test",
srcs = ["feclearexcept_test.cpp"],
srcs = [
"excepts.h",
"feclearexcept_test.cpp",
],
libc_function_deps = [
"//libc:feclearexcept",
],
deps = [
"//libc:__support_fputil_fenv_impl",
"//libc:hdr_fenv_macros",
"//libc:hdr_fenv_macros",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "feenableexcept_test",
srcs = ["feenableexcept_test.cpp"],
srcs = [
"excepts.h",
"feenableexcept_test.cpp",
],
libc_function_deps = [
"//libc:fedisableexcept",
"//libc:feenableexcept",
Expand All @@ -106,25 +135,34 @@ libc_test(
deps = [
"//libc:__support_common",
"//libc:__support_macros_properties_architectures",
"//libc:hdr_fenv_macros",
"//libc:hdr_fenv_macros",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "feupdateenv_test",
srcs = ["feupdateenv_test.cpp"],
srcs = [
"excepts.h",
"feupdateenv_test.cpp",
],
libc_function_deps = [
"//libc:feupdateenv",
],
deps = [
"//libc:__support_fputil_fenv_impl",
"//libc:types_fenv_t",
"//libc:hdr_fenv_macros",
"//libc:types_fenv_t",
"//libc/test/UnitTest:fp_test_helpers",
],
)

libc_test(
name = "getenv_and_setenv_test",
srcs = ["getenv_and_setenv_test.cpp"],
srcs = [
"excepts.h",
"getenv_and_setenv_test.cpp",
],
libc_function_deps = [
"//libc:fegetenv",
"//libc:fegetround",
Expand All @@ -133,6 +171,8 @@ libc_test(
],
deps = [
"//libc:__support_fputil_fenv_impl",
"//libc:types_fenv_t",
"//libc:hdr_fenv_macros",
"//libc:types_fenv_t",
"//libc/test/UnitTest:fp_test_helpers",
],
)

0 comments on commit 688c10d

Please sign in to comment.