[libc-commits] [PATCH] D129388: [libc] add dependencies to generic sqrt tests

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jul 8 11:36:46 PDT 2022


michaelrj created this revision.
michaelrj added reviewers: lntue, sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

This adds dependencies on the corresponding sqrt function to each
generic sqrt test. This is so that on platforms that don't support the
math functions, the tests are not run.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129388

Files:
  libc/test/src/math/CMakeLists.txt


Index: libc/test/src/math/CMakeLists.txt
===================================================================
--- libc/test/src/math/CMakeLists.txt
+++ libc/test/src/math/CMakeLists.txt
@@ -1004,6 +1004,7 @@
   SRCS
     generic_sqrtf_test.cpp
   DEPENDS
+    libc.src.math.sqrtf
     libc.src.__support.FPUtil.fputil
     libc.src.__support.FPUtil.generic.sqrt
   COMPILE_OPTIONS
@@ -1018,6 +1019,7 @@
   SRCS
     generic_sqrt_test.cpp
   DEPENDS
+    libc.src.math.sqrt
     libc.src.__support.FPUtil.fputil
     libc.src.__support.FPUtil.generic.sqrt
   COMPILE_OPTIONS
@@ -1032,6 +1034,7 @@
   SRCS
     generic_sqrtl_test.cpp
   DEPENDS
+    libc.src.math.sqrtl
     libc.src.__support.FPUtil.fputil
     libc.src.__support.FPUtil.generic.sqrt
   COMPILE_OPTIONS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129388.443307.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220708/8913d4e6/attachment.bin>


More information about the libc-commits mailing list