[libc-commits] [libc] 8bf8385 - [libc] add dependencies to generic sqrt tests

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Jul 8 15:41:15 PDT 2022


Author: Michael Jones
Date: 2022-07-08T15:41:11-07:00
New Revision: 8bf8385ef09b1262db16b8f09fb117071242f23a

URL: https://github.com/llvm/llvm-project/commit/8bf8385ef09b1262db16b8f09fb117071242f23a
DIFF: https://github.com/llvm/llvm-project/commit/8bf8385ef09b1262db16b8f09fb117071242f23a.diff

LOG: [libc] add dependencies to generic sqrt tests

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.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D129388

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index 971a73d3d84b0..4ac4e3c32acd4 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -1004,6 +1004,7 @@ add_fp_unittest(
   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 @@ add_fp_unittest(
   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 @@ add_fp_unittest(
   SRCS
     generic_sqrtl_test.cpp
   DEPENDS
+    libc.src.math.sqrtl
     libc.src.__support.FPUtil.fputil
     libc.src.__support.FPUtil.generic.sqrt
   COMPILE_OPTIONS


        


More information about the libc-commits mailing list