blob: c3721efc7e31d4763e67f037c5981e2e721b52eb [file] [log] [blame]
Colin Cross68d6a922016-12-07 11:24:06 -08001cc_binary_host {
2 name: "versioner",
3
Josh Gaoab25d0b2017-08-10 10:50:33 -07004 cpp_std: "gnu++17",
5
Chih-Hung Hsieh153b71c2018-10-01 16:16:02 -07006 // b/117120485 bugprone-exception-escape hangs with DeclarationDatabase.cpp
7 tidy_checks: ["-bugprone-exception-escape"],
8
Colin Cross68d6a922016-12-07 11:24:06 -08009 srcs: [
10 "versioner.cpp",
11 "Arch.cpp",
12 "CompilationType.cpp",
13 "DeclarationDatabase.cpp",
14 "Driver.cpp",
15 "Preprocessor.cpp",
16 "SymbolDatabase.cpp",
Logan Chien9c123232018-10-23 10:47:17 +080017 "SymbolFileParser.cpp",
Colin Cross68d6a922016-12-07 11:24:06 -080018 "Utils.cpp",
19 "VFS.cpp",
20 ],
21
22 shared_libs: [
Pirama Arumuga Nainarac5603a2017-08-03 11:33:56 -070023 "libclang_android",
24 "libLLVM_android",
Colin Cross68d6a922016-12-07 11:24:06 -080025 "libbase",
26 ],
27
28 header_libs: [
29 "llvm-headers",
30 "clang-headers",
31 ],
32
33 cflags: [
34 "-Wall",
35 "-Wextra",
36 "-Werror",
37 "-Wno-unused-parameter",
Josh Gaoab25d0b2017-08-10 10:50:33 -070038 "-fno-omit-frame-pointer",
Colin Cross68d6a922016-12-07 11:24:06 -080039
40 "-D__STDC_CONSTANT_MACROS",
41 "-D__STDC_LIMIT_MACROS",
Dan Albert4d1cc9d2018-01-08 14:44:42 -080042
43 "-D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS",
Colin Cross68d6a922016-12-07 11:24:06 -080044 ],
45
46 target: {
47 host: {
48 cppflags: [
Colin Cross68d6a922016-12-07 11:24:06 -080049 "-fno-rtti",
50 ],
51 },
Colin Cross68d6a922016-12-07 11:24:06 -080052 windows: {
53 enabled: false,
54 },
55 },
Colin Cross68d6a922016-12-07 11:24:06 -080056}