[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / compiler-rt / lib / ubsan / BUILD.gn
blobd38040c2623bad1f4768a96a8022bb3bde9f6894
1 source_set("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     "ubsan_diag.cpp",
11     "ubsan_diag.h",
12     "ubsan_flags.cpp",
13     "ubsan_flags.h",
14     "ubsan_handlers.cpp",
15     "ubsan_handlers.h",
16     "ubsan_init.cpp",
17     "ubsan_init.h",
18     "ubsan_monitor.cpp",
19     "ubsan_monitor.h",
20     "ubsan_platform.h",
21     "ubsan_signals_standalone.h",
22     "ubsan_type_hash.h",
23     "ubsan_value.cpp",
24     "ubsan_value.h",
25   ]
28 # Unreferenced; at the moment exists to make sync_source_lists_from_cmake happy.
29 source_set("standalone_sources") {
30   configs -= [ "//llvm/utils/gn/build:llvm_code" ]
31   configs -= [ "//llvm/utils/gn/build:no_rtti" ]
32   configs += [ "//llvm/utils/gn/build:crt_code" ]
33   defines = [ "UBSAN_CAN_USE_CXXABI" ]
34   sources = [
35     "ubsan_diag_standalone.cpp",
36     "ubsan_init_standalone.cpp",
37     "ubsan_signals_standalone.cpp",
38   ]
41 source_set("cxx_sources") {
42   configs -= [ "//llvm/utils/gn/build:llvm_code" ]
43   configs -= [ "//llvm/utils/gn/build:no_rtti" ]
44   configs += [ "//llvm/utils/gn/build:crt_code" ]
45   defines = [ "UBSAN_CAN_USE_CXXABI" ]
46   sources = [
47     "ubsan_handlers_cxx.cpp",
48     "ubsan_handlers_cxx.h",
49     "ubsan_type_hash.cpp",
50     "ubsan_type_hash_itanium.cpp",
51     "ubsan_type_hash_win.cpp",
52   ]