summaryrefslogtreecommitdiffstats
path: root/vendor/cxx/tools/buck/buildscript.bzl
blob: e4d5e1e4e47cf8f76f421ad9ee76b45012075f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
def buildscript_args(
        name: str.type,
        package_name: str.type,
        buildscript_rule: str.type,
        outfile: str.type,
        version: str.type,
        cfgs: [str.type] = [],
        features: [str.type] = []):
    _ = package_name
    _ = version
    _ = cfgs
    _ = features
    native.genrule(
        name = name,
        out = outfile,
        cmd = "env RUSTC=rustc TARGET= $(exe %s) | sed -n s/^cargo:rustc-cfg=/--cfg=/p > ${OUT}" % buildscript_rule,
    )