From 8bf8385ef09b1262db16b8f09fb117071242f23a Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Fri, 8 Jul 2022 11:35:29 -0700 Subject: [PATCH] [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 --- libc/test/src/math/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt index 971a73d3d84b..4ac4e3c32acd 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