[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / __support / OSUtil / CMakeLists.txt
blobc19677582643e7119eeb98a2e6b5072a0bdb5a35
1 if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   return()
3 endif()
5 add_subdirectory(${LIBC_TARGET_OS})
6 set(target_os_util libc.src.__support.OSUtil.${LIBC_TARGET_OS}.${LIBC_TARGET_OS}_util)
7 if(NOT TARGET ${target_os_util})
8   return()
9 endif()
11 # The OSUtil is an object library in GPU mode.
12 if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
13   add_header_library(
14     osutil
15     HDRS
16       io.h
17       quick_exit.h
18       syscall.h
19     DEPENDS
20       ${target_os_util}
21   )
22 else()
23   add_object_library(
24     osutil
25     ALIAS
26       ${target_os_util}
27     DEPENDS
28       ${target_os_util}
29   )
30 endif()