blob: c19677582643e7119eeb98a2e6b5072a0bdb5a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
return()
endif()
add_subdirectory(${LIBC_TARGET_OS})
set(target_os_util libc.src.__support.OSUtil.${LIBC_TARGET_OS}.${LIBC_TARGET_OS}_util)
if(NOT TARGET ${target_os_util})
return()
endif()
# The OSUtil is an object library in GPU mode.
if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
add_header_library(
osutil
HDRS
io.h
quick_exit.h
syscall.h
DEPENDS
${target_os_util}
)
else()
add_object_library(
osutil
ALIAS
${target_os_util}
DEPENDS
${target_os_util}
)
endif()
|