[libc][bazel] Add BUILD targets for complex functions and tests. (#129618)
This involved a little bit of yak shaving because one of the new tests
depends on MPC, and we didn't have targets for it yet, so I ended up
needing to add a similar setup to what we have for MPFR.
diff --git a/utils/bazel/WORKSPACE b/utils/bazel/WORKSPACE
index eeb1c69..84e65e6 100644
--- a/utils/bazel/WORKSPACE
+++ b/utils/bazel/WORKSPACE
@@ -128,6 +128,15 @@
maybe(
http_archive,
+ name = "mpc",
+ build_file = "@llvm-raw//utils/bazel/third_party_build:mpc.BUILD",
+ sha256 = "ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8",
+ strip_prefix = "mpc-1.3.1",
+ urls = ["https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz"],
+)
+
+maybe(
+ http_archive,
name = "pfm",
build_file = "@llvm-raw//utils/bazel/third_party_build:pfm.BUILD",
sha256 = "d18b97764c755528c1051d376e33545d0eb60c6ebf85680436813fa5b04cc3d1",