[clang][extract-api] Emit "navigator" property of "name" in SymbolGraph
[llvm-project.git] / compiler-rt / lib / interception / CMakeLists.txt
blob3242cf50e35f8600f0d6f11f38f304d3f3fe1e1c
1 # Build for the runtime interception helper library.
3 set(INTERCEPTION_SOURCES
4   interception_linux.cpp
5   interception_mac.cpp
6   interception_win.cpp
7   interception_type_test.cpp
8   )
10 set(INTERCEPTION_HEADERS
11   interception.h
12   interception_linux.h
13   interception_mac.h
14   interception_win.h
15   )
17 include_directories(..)
19 set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})
20 append_rtti_flag(OFF INTERCEPTION_CFLAGS)
22 # Silence warnings in system headers with MSVC.
23 if(NOT CLANG_CL)
24   append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" INTERCEPTION_CFLAGS)
25 endif()
27 add_compiler_rt_object_libraries(RTInterception
28     OS ${SANITIZER_COMMON_SUPPORTED_OS}
29     ARCHS ${SANITIZER_COMMON_SUPPORTED_ARCH}
30     SOURCES ${INTERCEPTION_SOURCES}
31     ADDITIONAL_HEADERS ${INTERCEPTION_HEADERS}
32     CFLAGS ${INTERCEPTION_CFLAGS})
34 if(COMPILER_RT_INCLUDE_TESTS)
35   add_subdirectory(tests)
36 endif()