[libc-commits] [libc] 7deb5ef - [libc][NFC] Instead of erroring, skip math targets with missing implementations.

Siva Chandra Reddy via libc-commits libc-commits at lists.llvm.org
Thu May 13 12:23:29 PDT 2021


Author: Siva Chandra Reddy
Date: 2021-05-13T19:22:11Z
New Revision: 7deb5ef44f2865f1b34cff98176a1a723107cf08

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

LOG: [libc][NFC] Instead of erroring, skip math targets with missing implementations.

Fixes Aarch64 bot.

Added: 
    

Modified: 
    libc/src/math/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt
index e3bdb30503ca..e2abe21a213b 100644
--- a/libc/src/math/CMakeLists.txt
+++ b/libc/src/math/CMakeLists.txt
@@ -29,7 +29,15 @@ function(add_math_entrypoint_object name)
     return()
   endif()
 
-  message(FATAL_ERROR "No machine specific or generic implementation found for ${name}.")
+  # Add a dummy entrypoint object for missing implementations. They will be skipped
+  # anyway as there will be no entry for them in the target entrypoints list.
+  add_entrypoint_object(
+    ${name}
+    SRCS
+      dummy_srcs
+    HDRS
+      dummy_hdrs
+  )
 endfunction()
 
 add_entrypoint_object(


        


More information about the libc-commits mailing list