[libc-commits] [libc] f768eb2 - [libc][obvious] Fix link order of math tests.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Tue Aug 18 11:06:25 PDT 2020


Author: Siva Chandra Reddy
Date: 2020-08-18T11:04:58-07:00
New Revision: f768eb216f5924219c845515c606ab0703825634

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

LOG: [libc][obvious] Fix link order of math tests.

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 f5a1e0e51a71..e73de5403564 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -18,10 +18,10 @@ function(add_fp_unittest name)
 
   add_libc_unittest(${name} ${MATH_UNITTEST_UNPARSED_ARGUMENTS})
   get_fq_target_name(${name} fq_target_name)
-  target_link_libraries(${fq_target_name} PRIVATE LibcFPTestHelpers)
   if(MATH_UNITTEST_NEED_MPFR)
     target_link_libraries(${fq_target_name} PRIVATE libcMPFRWrapper -lmpfr -lgmp)
   endif()
+  target_link_libraries(${fq_target_name} PRIVATE LibcFPTestHelpers)
 endfunction(add_fp_unittest)
 
 add_fp_unittest(


        


More information about the libc-commits mailing list