llvm/libc/src/__support/OSUtil/darwin/CMakeLists.txt

if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_ARCHITECTURE})
  return()
endif()

add_subdirectory(${LIBC_TARGET_ARCHITECTURE})

add_header_library(
  darwin_util
  HDRS
    io.h
    syscall.h
  DEPENDS
    .${LIBC_TARGET_ARCHITECTURE}.darwin_util
    libc.src.__support.common
    libc.src.__support.CPP.string_view
)