aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/Android.bp
blob: 6bfbce73a10a00e4f61cb0bb6e57c70b55f6449a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_clang_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-MIT
    //   SPDX-license-identifier-NCSA
    default_applicable_licenses: ["external_clang_license"],
}

cc_binary_host {
    name: "clang-tblgen",
    defaults: ["llvm-defaults"],
    srcs: ["*.cpp"],

    static_libs: [
        "libLLVMTableGen",
        "libLLVMSupport",
    ],

    cflags: [
        "-Wno-implicit-fallthrough",
        // NeonEmitter.cpp has several -Wimplicit-fallthrough.
    ],
    tidy_checks: [
        "-google-runtime-member-string-references",
    ],
    target: {
        windows: {
            host_ldlibs: [
                "-limagehlp",
                "-lpsapi",
                "-lversion",
            ],
        },
    },
}