about summary refs log tree commit diff homepage
path: root/runtime/POSIX/CMakeLists.txt
blob: d8208d9b04c8e10b5cc01b699997ed0897489bba (plain) (blame)
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
31
#===------------------------------------------------------------------------===#
#
#                     The KLEE Symbolic Virtual Machine
#
# This file is distributed under the University of Illinois Open Source
# License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
# Set up
set(LIB_PREFIX "RuntimePOSIX")
set(SRC_FILES
        fd.c
        fd_32.c
        fd_64.c
        fd_init.c
        illegal.c
        klee_init_env.c
        misc.c
        selinux.c
        stubs.c
        )

try_compile (FSTATAT_PATH_ACCEPTS_NULL
        ${CMAKE_BINARY_DIR}
        ${PROJECT_SOURCE_DIR}/cmake/fstatat.c
        )

# Build it
include("${CMAKE_SOURCE_DIR}/cmake/compile_bitcode_library.cmake")
prefix_with_path("${SRC_FILES}" "${CMAKE_CURRENT_SOURCE_DIR}/" prefixed_files)
add_bitcode_library_targets("${LIB_PREFIX}" "${prefixed_files}" "-std=gnu89" "")