1//===---------------------------------------------------------------===
2// bugpoint command line tool
3//===---------------------------------------------------------------===
4
5
6cc_binary_host {
7    name: "bugpoint",
8    defaults: ["llvm-defaults"],
9    srcs: ["*.cpp"],
10    static_libs: [
11        "libLLVMBitWriter",
12        "libLLVMCodeGen",
13        "libLLVMipo",
14        "libLLVMIRReader",
15        "libLLVMBitReader",
16        "libLLVMAsmParser",
17        "libLLVMInstCombine",
18        "libLLVMInstrumentation",
19        "libLLVMLinker",
20        "libLLVMTransformObjCARC",
21        "libLLVMObject",
22        "libLLVMScalarOpts",
23        "libLLVMTransformUtils",
24        "libLLVMAnalysis",
25        "libLLVMTarget",
26        "libLLVMCore",
27        "libLLVMMC",
28        "libLLVMMCParser",
29        "libLLVMProfileData",
30        "libLLVMVectorize",
31        "libLLVMSupport",
32    ],
33    target: {
34        darwin: {
35            ldflags: ["-Wl,-export_dynamic"],
36        },
37        linux: {
38            ldflags: ["-Wl,--export-dynamic"],
39        },
40    },
41}
42