blob: 59e1b922aa320dfe800d5442496667a3a7a5b192 [file] [log] [blame]
Colin Cross68d6a922016-12-07 11:24:06 -08001cc_binary_host {
2 name: "versioner",
3
Logan Chienc16d65d2018-10-23 22:05:28 +08004 defaults: ["llvm-build-host-tools-defaults"],
5
Josh Gaoab25d0b2017-08-10 10:50:33 -07006 cpp_std: "gnu++17",
7
Chih-Hung Hsieh153b71c2018-10-01 16:16:02 -07008 // b/117120485 bugprone-exception-escape hangs with DeclarationDatabase.cpp
9 tidy_checks: ["-bugprone-exception-escape"],
10
Colin Cross68d6a922016-12-07 11:24:06 -080011 srcs: [
12 "versioner.cpp",
13 "Arch.cpp",
14 "CompilationType.cpp",
15 "DeclarationDatabase.cpp",
16 "Driver.cpp",
17 "Preprocessor.cpp",
18 "SymbolDatabase.cpp",
Logan Chien9c123232018-10-23 10:47:17 +080019 "SymbolFileParser.cpp",
Colin Cross68d6a922016-12-07 11:24:06 -080020 "Utils.cpp",
21 "VFS.cpp",
22 ],
23
24 shared_libs: [
Logan Chienc16d65d2018-10-23 22:05:28 +080025 "libclang_cxx_host",
26 "libLLVM_host",
Colin Cross68d6a922016-12-07 11:24:06 -080027 "libbase",
28 ],
29
Colin Cross68d6a922016-12-07 11:24:06 -080030 cflags: [
31 "-Wall",
32 "-Wextra",
33 "-Werror",
34 "-Wno-unused-parameter",
Josh Gaoab25d0b2017-08-10 10:50:33 -070035 "-fno-omit-frame-pointer",
Colin Cross68d6a922016-12-07 11:24:06 -080036
37 "-D__STDC_CONSTANT_MACROS",
38 "-D__STDC_LIMIT_MACROS",
Dan Albert4d1cc9d2018-01-08 14:44:42 -080039
40 "-D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS",
Colin Cross68d6a922016-12-07 11:24:06 -080041 ],
42
43 target: {
44 host: {
45 cppflags: [
Colin Cross68d6a922016-12-07 11:24:06 -080046 "-fno-rtti",
47 ],
48 },
Colin Cross68d6a922016-12-07 11:24:06 -080049 windows: {
50 enabled: false,
51 },
52 },
Colin Cross68d6a922016-12-07 11:24:06 -080053}