[libc-commits] [PATCH] D149745: [libc] Split out FPExceptMatcher from the FP utils

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed May 3 09:38:16 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc00f8f131447: [libc] Split out FPExceptMatcher from the FP utils (authored by jhuber6).

Changed prior to commit:
  https://reviews.llvm.org/D149745?vs=519110&id=519128#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149745/new/

https://reviews.llvm.org/D149745

Files:
  libc/test/UnitTest/CMakeLists.txt
  libc/test/src/fenv/CMakeLists.txt


Index: libc/test/src/fenv/CMakeLists.txt
===================================================================
--- libc/test/src/fenv/CMakeLists.txt
+++ libc/test/src/fenv/CMakeLists.txt
@@ -104,6 +104,8 @@
       libc.src.fenv.feraiseexcept
       libc.src.fenv.fetestexcept
       libc.src.__support.FPUtil.fenv_impl
+    LINK_LIBRARIES
+      LibcFPExceptionHelpers
   )
 
   add_fp_unittest(
@@ -116,5 +118,7 @@
       libc.include.fenv
       libc.src.fenv.feholdexcept
       libc.src.__support.FPUtil.fenv_impl
+    LINK_LIBRARIES
+      LibcFPExceptionHelpers
   )
 endif()
Index: libc/test/UnitTest/CMakeLists.txt
===================================================================
--- libc/test/UnitTest/CMakeLists.txt
+++ libc/test/UnitTest/CMakeLists.txt
@@ -71,8 +71,6 @@
 
 add_library(
   LibcFPTestHelpers
-  FPExceptMatcher.cpp
-  FPExceptMatcher.h
   FPMatcher.h
   RoundingModeUtils.cpp
   RoundingModeUtils.h
@@ -85,6 +83,17 @@
   libc.src.__support.FPUtil.fenv_impl
   libc.test.UnitTest.string_utils
 )
+add_library(
+  LibcFPExceptionHelpers
+  FPExceptMatcher.cpp
+  FPExceptMatcher.h
+)
+add_dependencies(
+  LibcFPExceptionHelpers
+  LibcUnitTest
+  libc.src.__support.FPUtil.fp_bits
+  libc.src.__support.FPUtil.fenv_impl
+)
 
 add_library(
   LibcMemoryHelpers
@@ -123,7 +132,8 @@
   libc.test.UnitTest.string_utils
 )
 
-foreach(lib LibcFPTestHelpers LibcMemoryHelpers LibcPrintfHelpers LibcScanfHelpers)
+foreach(lib LibcFPTestHelpers LibcFPExceptionHelpers LibcMemoryHelpers 
+            LibcPrintfHelpers LibcScanfHelpers)
   target_include_directories(${lib} PUBLIC ${LIBC_SOURCE_DIR})
   target_compile_options(${lib} PRIVATE -fno-exceptions -fno-rtti)
   target_link_libraries(${lib} LibcUnitTest)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149745.519128.patch
Type: text/x-patch
Size: 1732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230503/8186d1c6/attachment.bin>


More information about the libc-commits mailing list