[libc-commits] [libc] [libc] Add Darwin mutex support via os_sync primitives (PR #167722)

via libc-commits libc-commits at lists.llvm.org
Mon Dec 1 10:39:58 PST 2025


================
@@ -23,13 +23,36 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
   add_subdirectory(${LIBC_TARGET_OS})
 endif()
 
-if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.mutex)
+if(TARGET libc.src.__support.threads.${LIBC_TARGET_OS}.futex_utils)
   add_header_library(
     mutex
     HDRS
-      mutex.h
+    mutex.h
+    DEPENDS
+    .unix_mutex
+  )
+  add_header_library(
+    unix_mutex
+    HDRS
+      unix_mutex.h
+    DEPENDS
+      .raw_mutex
+  )
+
+  add_header_library(
----------------
lntue wrote:

move this above `unix_mutex`

https://github.com/llvm/llvm-project/pull/167722


More information about the libc-commits mailing list