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.cc",
19 "sanitizer_allocator.h",
20 "sanitizer_allocator_bytemap.h",
21 "sanitizer_allocator_checks.cc",
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.cc",
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.cc",
45 "sanitizer_common_libcdep.cc",
46 "sanitizer_coverage_fuchsia.cc",
47 "sanitizer_coverage_libcdep_new.cc",
48 "sanitizer_coverage_win_sections.cc",
49 "sanitizer_dbghelp.h",
50 "sanitizer_deadlock_detector.h",
51 "sanitizer_deadlock_detector1.cc",
52 "sanitizer_deadlock_detector2.cc",
53 "sanitizer_deadlock_detector_interface.h",
56 "sanitizer_errno_codes.h",
59 "sanitizer_flag_parser.cc",
60 "sanitizer_flag_parser.h",
63 "sanitizer_freebsd.h",
64 "sanitizer_fuchsia.cc",
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.cc",
74 "sanitizer_libignore.h",
77 "sanitizer_linux_libcdep.cc",
78 "sanitizer_linux_s390.cc",
80 "sanitizer_local_address_space_view.h",
83 "sanitizer_mac_libcdep.cc",
85 "sanitizer_netbsd.cc",
86 "sanitizer_openbsd.cc",
87 "sanitizer_persistent_allocator.cc",
88 "sanitizer_persistent_allocator.h",
89 "sanitizer_placement_new.h",
90 "sanitizer_platform.h",
91 "sanitizer_platform_interceptors.h",
92 "sanitizer_platform_limits_freebsd.cc",
93 "sanitizer_platform_limits_linux.cc",
94 "sanitizer_platform_limits_netbsd.cc",
95 "sanitizer_platform_limits_netbsd.h",
96 "sanitizer_platform_limits_openbsd.cc",
97 "sanitizer_platform_limits_openbsd.h",
98 "sanitizer_platform_limits_posix.cc",
99 "sanitizer_platform_limits_posix.h",
100 "sanitizer_platform_limits_solaris.cc",
101 "sanitizer_platform_limits_solaris.h",
102 "sanitizer_posix.cc",
104 "sanitizer_posix_libcdep.cc",
105 "sanitizer_printf.cc",
106 "sanitizer_procmaps.h",
107 "sanitizer_procmaps_bsd.cc",
108 "sanitizer_procmaps_common.cc",
109 "sanitizer_procmaps_linux.cc",
110 "sanitizer_procmaps_mac.cc",
111 "sanitizer_procmaps_solaris.cc",
112 "sanitizer_quarantine.h",
113 "sanitizer_report_decorator.h",
114 "sanitizer_ring_buffer.h",
115 "sanitizer_rtems.cc",
117 "sanitizer_solaris.cc",
118 "sanitizer_stackdepot.cc",
119 "sanitizer_stackdepot.h",
120 "sanitizer_stackdepotbase.h",
121 "sanitizer_stacktrace.cc",
122 "sanitizer_stacktrace.h",
123 "sanitizer_stacktrace_libcdep.cc",
124 "sanitizer_stacktrace_printer.cc",
125 "sanitizer_stacktrace_printer.h",
126 "sanitizer_stacktrace_sparc.cc",
127 "sanitizer_stoptheworld.h",
128 "sanitizer_stoptheworld_linux_libcdep.cc",
129 "sanitizer_stoptheworld_mac.cc",
130 "sanitizer_suppressions.cc",
131 "sanitizer_suppressions.h",
132 "sanitizer_symbolizer.cc",
133 "sanitizer_symbolizer.h",
134 "sanitizer_symbolizer_fuchsia.h",
135 "sanitizer_symbolizer_internal.h",
136 "sanitizer_symbolizer_libbacktrace.cc",
137 "sanitizer_symbolizer_libbacktrace.h",
138 "sanitizer_symbolizer_libcdep.cc",
139 "sanitizer_symbolizer_mac.cc",
140 "sanitizer_symbolizer_mac.h",
141 "sanitizer_symbolizer_markup.cc",
142 "sanitizer_symbolizer_posix_libcdep.cc",
143 "sanitizer_symbolizer_report.cc",
144 "sanitizer_symbolizer_rtems.h",
145 "sanitizer_symbolizer_win.cc",
146 "sanitizer_termination.cc",
147 "sanitizer_thread_registry.cc",
148 "sanitizer_thread_registry.h",
149 "sanitizer_tls_get_addr.cc",
150 "sanitizer_tls_get_addr.h",
151 "sanitizer_unwind_linux_libcdep.cc",
152 "sanitizer_unwind_win.cc",
153 "sanitizer_vector.h",
156 "sanitizer_win_defs.h",
157 "sanitizer_win_dll_thunk.h",
158 "sanitizer_win_weak_interception.h",
160 if (current_cpu == "x64") {
161 sources += [ "sanitizer_linux_x86_64.S" ]