1 source_set("sources") {
2 configs -= [ "//llvm/utils/gn/build:llvm_code" ]
3 configs += [ "//llvm/utils/gn/build:crt_code" ]
5 "//llvm/utils/gn/build/libs/pthread",
8 if (current_os == "linux" || current_os == "android") {
11 if (current_os == "linux") {
17 "sanitizer_addrhashmap.h",
18 "sanitizer_allocator.cpp",
19 "sanitizer_allocator.h",
20 "sanitizer_allocator_bytemap.h",
21 "sanitizer_allocator_checks.cpp",
22 "sanitizer_allocator_checks.h",
23 "sanitizer_allocator_combined.h",
24 "sanitizer_allocator_interface.h",
25 "sanitizer_allocator_internal.h",
26 "sanitizer_allocator_local_cache.h",
27 "sanitizer_allocator_primary32.h",
28 "sanitizer_allocator_primary64.h",
29 "sanitizer_allocator_report.cpp",
30 "sanitizer_allocator_report.h",
31 "sanitizer_allocator_secondary.h",
32 "sanitizer_allocator_size_class_map.h",
33 "sanitizer_allocator_stats.h",
36 "sanitizer_atomic_clang.h",
37 "sanitizer_atomic_clang_mips.h",
38 "sanitizer_atomic_clang_other.h",
39 "sanitizer_atomic_clang_x86.h",
40 "sanitizer_atomic_msvc.h",
41 "sanitizer_bitvector.h",
42 "sanitizer_bvgraph.h",
43 "sanitizer_common.cpp",
45 "sanitizer_common_libcdep.cpp",
46 "sanitizer_coverage_fuchsia.cpp",
47 "sanitizer_coverage_libcdep_new.cpp",
48 "sanitizer_coverage_win_sections.cpp",
49 "sanitizer_dbghelp.h",
50 "sanitizer_deadlock_detector.h",
51 "sanitizer_deadlock_detector1.cpp",
52 "sanitizer_deadlock_detector2.cpp",
53 "sanitizer_deadlock_detector_interface.h",
54 "sanitizer_errno.cpp",
56 "sanitizer_errno_codes.h",
59 "sanitizer_flag_parser.cpp",
60 "sanitizer_flag_parser.h",
61 "sanitizer_flags.cpp",
63 "sanitizer_freebsd.h",
64 "sanitizer_fuchsia.cpp",
65 "sanitizer_fuchsia.h",
66 "sanitizer_getauxval.h",
68 "sanitizer_interface_internal.h",
69 "sanitizer_internal_defs.h",
70 "sanitizer_lfstack.h",
73 "sanitizer_libignore.cpp",
74 "sanitizer_libignore.h",
75 "sanitizer_linux.cpp",
77 "sanitizer_linux_libcdep.cpp",
78 "sanitizer_linux_s390.cpp",
80 "sanitizer_local_address_space_view.h",
83 "sanitizer_mac_libcdep.cpp",
85 "sanitizer_netbsd.cpp",
86 "sanitizer_openbsd.cpp",
87 "sanitizer_persistent_allocator.cpp",
88 "sanitizer_persistent_allocator.h",
89 "sanitizer_placement_new.h",
90 "sanitizer_platform.h",
91 "sanitizer_platform_interceptors.h",
92 "sanitizer_platform_limits_freebsd.cpp",
93 "sanitizer_platform_limits_linux.cpp",
94 "sanitizer_platform_limits_netbsd.cpp",
95 "sanitizer_platform_limits_netbsd.h",
96 "sanitizer_platform_limits_openbsd.cpp",
97 "sanitizer_platform_limits_openbsd.h",
98 "sanitizer_platform_limits_posix.cpp",
99 "sanitizer_platform_limits_posix.h",
100 "sanitizer_platform_limits_solaris.cpp",
101 "sanitizer_platform_limits_solaris.h",
102 "sanitizer_posix.cpp",
104 "sanitizer_posix_libcdep.cpp",
105 "sanitizer_printf.cpp",
106 "sanitizer_procmaps.h",
107 "sanitizer_procmaps_bsd.cpp",
108 "sanitizer_procmaps_common.cpp",
109 "sanitizer_procmaps_linux.cpp",
110 "sanitizer_procmaps_mac.cpp",
111 "sanitizer_procmaps_solaris.cpp",
112 "sanitizer_quarantine.h",
113 "sanitizer_report_decorator.h",
114 "sanitizer_ring_buffer.h",
115 "sanitizer_rtems.cpp",
117 "sanitizer_solaris.cpp",
118 "sanitizer_stackdepot.cpp",
119 "sanitizer_stackdepot.h",
120 "sanitizer_stackdepotbase.h",
121 "sanitizer_stacktrace.cpp",
122 "sanitizer_stacktrace.h",
123 "sanitizer_stacktrace_libcdep.cpp",
124 "sanitizer_stacktrace_printer.cpp",
125 "sanitizer_stacktrace_printer.h",
126 "sanitizer_stacktrace_sparc.cpp",
127 "sanitizer_stoptheworld.h",
128 "sanitizer_stoptheworld_linux_libcdep.cpp",
129 "sanitizer_stoptheworld_mac.cpp",
130 "sanitizer_stoptheworld_netbsd_libcdep.cpp",
131 "sanitizer_suppressions.cpp",
132 "sanitizer_suppressions.h",
133 "sanitizer_symbolizer.cpp",
134 "sanitizer_symbolizer.h",
135 "sanitizer_symbolizer_fuchsia.h",
136 "sanitizer_symbolizer_internal.h",
137 "sanitizer_symbolizer_libbacktrace.cpp",
138 "sanitizer_symbolizer_libbacktrace.h",
139 "sanitizer_symbolizer_libcdep.cpp",
140 "sanitizer_symbolizer_mac.cpp",
141 "sanitizer_symbolizer_mac.h",
142 "sanitizer_symbolizer_markup.cpp",
143 "sanitizer_symbolizer_posix_libcdep.cpp",
144 "sanitizer_symbolizer_report.cpp",
145 "sanitizer_symbolizer_rtems.h",
146 "sanitizer_symbolizer_win.cpp",
147 "sanitizer_termination.cpp",
148 "sanitizer_thread_registry.cpp",
149 "sanitizer_thread_registry.h",
150 "sanitizer_tls_get_addr.cpp",
151 "sanitizer_tls_get_addr.h",
152 "sanitizer_type_traits.cpp",
153 "sanitizer_unwind_linux_libcdep.cpp",
154 "sanitizer_unwind_win.cpp",
155 "sanitizer_vector.h",
158 "sanitizer_win_defs.h",
159 "sanitizer_win_dll_thunk.h",
160 "sanitizer_win_weak_interception.h",
164 # Libc functions stubs. These sources should be linked instead of
165 # SANITIZER_LIBCDEP_SOURCES when sanitizer_common library must not depend on
166 # libc. This is currently unreferenced and exists to make
167 # sync_source_lists_from_cmake happy.
168 source_set("nolibc_sources") {
169 configs -= [ "//llvm/utils/gn/build:llvm_code" ]
170 configs += [ "//llvm/utils/gn/build:crt_code" ]
172 "//llvm/utils/gn/build/libs/pthread",
175 "sanitizer_common_nolibc.cpp",