[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libc / src / __support / threads / linux / CMakeLists.txt
blob642eead727726251ef8f91e8bbddd4698eafcfc5
1 add_header_library(
2   futex_word_type
3   HDRS
4     futex_word.h
7 if(NOT TARGET libc.src.__support.OSUtil.osutil)
8   return()
9 endif()
11 add_header_library(
12   mutex
13   HDRS
14     mutex.h
15   DEPENDS
16     .futex_word_type
17     libc.include.sys_syscall
18     libc.src.__support.CPP.atomic
19     libc.src.__support.OSUtil.osutil
20     libc.src.__support.threads.mutex_common
23 add_object_library(
24   thread
25   SRCS
26     thread.cpp
27   DEPENDS
28     .futex_word_type
29     libc.config.linux.app_h
30     libc.include.sys_syscall
31     libc.src.errno.errno
32     libc.src.__support.CPP.atomic
33     libc.src.__support.CPP.stringstream
34     libc.src.__support.CPP.string_view
35     libc.src.__support.common
36     libc.src.__support.error_or
37     libc.src.__support.threads.thread_common
38   COMPILE_OPTIONS
39     -O3
40     -fno-omit-frame-pointer # This allows us to sniff out the thread args from
41                             # the new thread's stack reliably.
44 add_object_library(
45   callonce
46   SRCS
47     callonce.cpp
48   HDRS
49     ../callonce.h
50   DEPENDS
51     libc.include.sys_syscall
52     libc.src.__support.CPP.atomic
53     libc.src.__support.OSUtil.osutil