1source_set("common_sources") { 2 configs -= [ "//llvm/utils/gn/build:llvm_code" ] 3 configs += [ "//llvm/utils/gn/build:crt_code" ] 4 defines = [ "UBSAN_CAN_USE_CXXABI" ] 5 deps = [ 6 "//compiler-rt/lib/interception:sources", 7 "//compiler-rt/lib/sanitizer_common:sources", 8 ] 9 sources = [ 10 "lsan_common.cpp", 11 "lsan_common.h", 12 "lsan_common_fuchsia.cpp", 13 "lsan_common_linux.cpp", 14 "lsan_common_mac.cpp", 15 ] 16} 17 18source_set("sources") { 19 configs -= [ "//llvm/utils/gn/build:llvm_code" ] 20 configs += [ "//llvm/utils/gn/build:crt_code" ] 21 defines = [ "UBSAN_CAN_USE_CXXABI" ] 22 deps = [ 23 "//compiler-rt/lib/interception:sources", 24 "//compiler-rt/lib/sanitizer_common:sources", 25 ] 26 sources = [ 27 "lsan.cpp", 28 "lsan.h", 29 "lsan_allocator.cpp", 30 "lsan_allocator.h", 31 "lsan_flags.inc", 32 "lsan_fuchsia.cpp", 33 "lsan_interceptors.cpp", 34 "lsan_linux.cpp", 35 "lsan_mac.cpp", 36 "lsan_malloc_mac.cpp", 37 "lsan_posix.cpp", 38 "lsan_preinit.cpp", 39 "lsan_thread.cpp", 40 "lsan_thread.h", 41 ] 42} 43