1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_llvm_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-NCSA
7    default_applicable_licenses: ["external_llvm_license"],
8}
9
10cc_binary_host {
11    name: "llvm-tblgen",
12    defaults: ["llvm-defaults-no-generated-headers"],
13    srcs: ["*.cpp"],
14
15    static_libs: [
16        "libLLVMSupport",
17        "libLLVMTableGen",
18    ],
19    clang_cflags: [
20        "-Wno-user-defined-warnings",
21    ],
22    target: {
23        windows: {
24            enabled: false,
25        },
26        // llvm-defaults turns off host builds by default, turn it back on for
27        // modules that are used to build llvm-tblgen
28        host: {
29            enabled: true,
30        },
31    },
32}
33