blob: f138cc3b243c8e1cb27060d81e4b68bffc3ad183 [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",
17 "Utils.cpp",
18 "VFS.cpp",
19 ],
20
21 shared_libs: [
Pirama Arumuga Nainarac5603a2017-08-03 11:33:56 -070022 "libclang_android",
23 "libLLVM_android",
Colin Cross68d6a922016-12-07 11:24:06 -080024 "libbase",
25 ],
26
27 header_libs: [
28 "llvm-headers",
29 "clang-headers",
30 ],
31
32 cflags: [
33 "-Wall",
34 "-Wextra",
35 "-Werror",
36 "-Wno-unused-parameter",
Josh Gaoab25d0b2017-08-10 10:50:33 -070037 "-fno-omit-frame-pointer",
Colin Cross68d6a922016-12-07 11:24:06 -080038
39 "-D__STDC_CONSTANT_MACROS",
40 "-D__STDC_LIMIT_MACROS",
Dan Albert4d1cc9d2018-01-08 14:44:42 -080041
42 "-D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS",
Colin Cross68d6a922016-12-07 11:24:06 -080043 ],
44
45 target: {
46 host: {
47 cppflags: [
Colin Cross68d6a922016-12-07 11:24:06 -080048 "-fno-rtti",
49 ],
50 },
Colin Cross68d6a922016-12-07 11:24:06 -080051 windows: {
52 enabled: false,
53 },
54 },
Colin Cross68d6a922016-12-07 11:24:06 -080055}