blob: 97e85f83544240f667f207b637dcf87e731482f8 [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
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: [
Logan Chienc16d65d2018-10-23 22:05:28 +080023 "libclang_cxx_host",
24 "libLLVM_host",
Colin Cross68d6a922016-12-07 11:24:06 -080025 "libbase",
26 ],
27
Colin Cross68d6a922016-12-07 11:24:06 -080028 cflags: [
29 "-Wall",
30 "-Wextra",
31 "-Werror",
32 "-Wno-unused-parameter",
Josh Gaoab25d0b2017-08-10 10:50:33 -070033 "-fno-omit-frame-pointer",
Colin Cross68d6a922016-12-07 11:24:06 -080034
35 "-D__STDC_CONSTANT_MACROS",
36 "-D__STDC_LIMIT_MACROS",
Dan Albert4d1cc9d2018-01-08 14:44:42 -080037
38 "-D_LIBCPP_ENABLE_CXX17_REMOVED_BINDERS",
Colin Cross68d6a922016-12-07 11:24:06 -080039 ],
40
41 target: {
42 host: {
43 cppflags: [
Colin Cross68d6a922016-12-07 11:24:06 -080044 "-fno-rtti",
45 ],
46 },
Colin Cross68d6a922016-12-07 11:24:06 -080047 windows: {
48 enabled: false,
49 },
50 },
Colin Cross68d6a922016-12-07 11:24:06 -080051}