[libc] Add implementation of errno and define the other macros of errno.h.
[lldb.git] / libc / src / errno / CMakeLists.txt
1 add_entrypoint_object(
2   __errno_location
3   SRCS
4     errno_location.cpp
5   HDRS
6     llvmlibc_errno.h
7 )
8
9 add_custom_target(libc_errno_unittests)
10
11 add_libc_unittest(
12   errno_test
13   SUITE
14     libc_errno_unittests
15   SRCS
16     errno_test.cpp
17   DEPENDS
18     __errno_location
19 )