Debian Codegraph @

llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn

raw
1 import("//compiler-rt/target.gni")
2
3 scudo_cflags = [
4 "-Werror=conversion",
5 "-nostdinc++",
6 ]
7
8 source_set("sources") {
9 configs -= [ "//llvm/utils/gn/build:llvm_code" ]
10 configs += [ "//llvm/utils/gn/build:crt_code" ]
11 cflags = scudo_cflags
12 sources = [
13 "allocator_config.h",
14 "atomic_helpers.h",
15 "bytemap.h",
16 "checksum.cpp",
17 "checksum.h",
18 "chunk.h",
19 "combined.h",
20 "common.cpp",
21 "common.h",
22 "crc32_hw.cpp",
23 "flags.cpp",
24 "flags.h",
25 "flags_parser.cpp",
26 "flags_parser.h",
27 "fuchsia.cpp",
28 "fuchsia.h",
29 "include/scudo/interface.h",
30 "internal_defs.h",
31 "linux.cpp",
32 "linux.h",
33 "list.h",
34 "local_cache.h",
35 "memtag.h",
36 "mutex.h",
37 "options.h",
38 "platform.h",
39 "primary32.h",
40 "primary64.h",
41 "quarantine.h",
42 "release.cpp",
43 "release.h",
44 "report.cpp",
45 "report.h",
46 "rss_limit_checker.cpp",
47 "rss_limit_checker.h",
48 "secondary.h",
49 "size_class_map.h",
50 "stack_depot.h",
51 "stats.h",
52 "string_utils.cpp",
53 "string_utils.h",
54 "tsd.h",
55 "tsd_exclusive.h",
56 "tsd_shared.h",
57 "vector.h",
58 "wrappers_c.h",
59 "wrappers_c_checks.h",
60 ]
61
62 if (current_cpu == "arm" || current_cpu == "arm64") {
63 cflags += [ "-mcrc" ]
64 }
65 if (current_cpu == "x64") {
66 cflags += [ "-msse4.2" ]
67 }
68
69 public_configs = [ ":scudo_config" ]
70 }
71
72 source_set("c_wrapper_sources") {
73 configs -= [ "//llvm/utils/gn/build:llvm_code" ]
74 configs += [ "//llvm/utils/gn/build:crt_code" ]
75 cflags = scudo_cflags
76 sources = [ "wrappers_c.cpp" ]
77
78 public_configs = [ ":scudo_config" ]
79 }
80
81 source_set("cxx_wrapper_sources") {
82 configs -= [ "//llvm/utils/gn/build:llvm_code" ]
83 configs += [ "//llvm/utils/gn/build:crt_code" ]
84 cflags = scudo_cflags
85 sources = [ "wrappers_cpp.cpp" ]
86
87 public_configs = [ ":scudo_config" ]
88 }
89
90 config("scudo_config") {
91 include_dirs = [
92 ".",
93 "include",
94 ]
95 if (current_os == "android") {
96 cflags = [ "-fno-emulated-tls" ]
97 }
98 }