xref: /llvm-project/libc/startup/linux/riscv/CMakeLists.txt (revision 1a92cc5a0ad108c515b1c383645ff70069c12077)
1add_startup_object(
2  tls
3  SRC
4    tls.cpp
5  DEPENDS
6    libc.config.app_h
7    libc.include.sys_mman
8    libc.include.sys_syscall
9    libc.src.__support.OSUtil.osutil
10    libc.src.string.memory_utils.inline_memcpy
11  COMPILE_OPTIONS
12    -fno-omit-frame-pointer
13    -ffreestanding # To avoid compiler warnings about calling the main function.
14)
15
16add_startup_object(
17  start
18  SRC
19    start.cpp
20  DEPENDS
21    libc.config.app_h
22    libc.src.__support.macros.attributes
23  COMPILE_OPTIONS
24    -fno-omit-frame-pointer
25    -ffreestanding # To avoid compiler warnings about calling the main function.
26)
27