• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//===---------------------------------------------------------------===
2// opt command line tool
3//===---------------------------------------------------------------===
4
5cc_binary_host {
6    name: "opt",
7    defaults: ["llvm-defaults"],
8    srcs: ["*.cpp"],
9    static_libs: [
10        "libLLVMIRReader",
11        "libLLVMBitReader",
12        "libLLVMBitWriter",
13        "libLLVMARMCodeGen",
14        "libLLVMARMInfo",
15        "libLLVMARMDesc",
16        "libLLVMARMAsmPrinter",
17        "libLLVMARMDisassembler",
18        "libLLVMAArch64CodeGen",
19        "libLLVMAArch64Info",
20        "libLLVMAArch64Desc",
21        "libLLVMAArch64AsmPrinter",
22        "libLLVMAArch64Utils",
23        "libLLVMAArch64Disassembler",
24        "libLLVMMipsCodeGen",
25        "libLLVMMipsInfo",
26        "libLLVMMipsDesc",
27        "libLLVMMipsAsmPrinter",
28        "libLLVMMipsDisassembler",
29        "libLLVMX86CodeGen",
30        "libLLVMX86Info",
31        "libLLVMX86Desc",
32        "libLLVMX86AsmPrinter",
33        "libLLVMX86Utils",
34        "libLLVMX86Disassembler",
35        "libLLVMGlobalISel",
36        "libLLVMAsmPrinter",
37        "libLLVMDebugInfoCodeView",
38        "libLLVMSelectionDAG",
39        "libLLVMCodeGen",
40        "libLLVMTransformObjCARC",
41        "libLLVMVectorize",
42        "libLLVMScalarOpts",
43        "libLLVMPasses",
44        "libLLVMipo",
45        "libLLVMLinker",
46        "libLLVMInstCombine",
47        "libLLVMInstrumentation",
48        "libLLVMTransformUtils",
49        "libLLVMAnalysis",
50        "libLLVMTarget",
51        "libLLVMMC",
52        "libLLVMMCParser",
53        "libLLVMObject",
54        "libLLVMProfileData",
55        "libLLVMCore",
56        "libLLVMAsmParser",
57        "libLLVMOption",
58        "libLLVMSupport",
59        "libLLVMMCDisassembler",
60    ],
61    target: {
62        darwin: {
63            ldflags: ["-Wl,-export_dynamic"],
64        },
65        linux: {
66            ldflags: ["-Wl,--export-dynamic"],
67        },
68    },
69}
70