fwd/vendor/cxx/tools/buck/buildscript.bzl
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

13 lines
338 B
Python

def buildscript_args(
name,
package_name,
buildscript_rule,
cfgs,
features,
outfile,
version):
native.genrule(
name = name,
out = outfile,
cmd = "env RUSTC=rustc TARGET= $(exe %s) | sed -n s/^cargo:rustc-cfg=/--cfg=/p > ${OUT}" % buildscript_rule,
)