[libc-commits] [libc] [libc][complex] Testing infra for MPC (PR #121261)

via libc-commits libc-commits at lists.llvm.org
Wed Jan 8 12:56:24 PST 2025


================
@@ -46,6 +46,34 @@ function(add_fp_unittest name)
   )
 endfunction(add_fp_unittest)
 
+function(add_cfp_unittest name)
+  cmake_parse_arguments(
+    "COMPLEX_UNITTEST"
+    "NEED_MPC" # Optional argument
----------------
lntue wrote:

You can add `NEED_MPC` option in `add_fp_unittest` instead, and make `NEED_MPC` implies `NEED_MPFR` in the checks.

https://github.com/llvm/llvm-project/pull/121261


More information about the libc-commits mailing list