File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1+ load ("@bazel_skylib//rules:native_binary.bzl" , "native_binary" )
2+
13_args = [
24 "//rust/ast-generator" ,
35 "//rust/ast-generator:manifest" ,
@@ -15,3 +17,16 @@ sh_binary(
1517 "//misc/bazel:sh_runfiles" ,
1618 ],
1719)
20+
21+ native_binary (
22+ name = "py" ,
23+ src = "//misc/codegen" ,
24+ out = "codegen" ,
25+ args = [
26+ "--configuration-file=$(location //rust:codegen-conf)" ,
27+ ],
28+ data = [
29+ "//rust:codegen-conf" ,
30+ ],
31+ visibility = ["//rust:__subpackages__" ],
32+ )
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ ast_generator="$(rlocation "$1")"
88ast_generator_manifest=" $( rlocation " $2 " ) "
99codegen=" $( rlocation " $3 " ) "
1010codegen_conf=" $( rlocation " $4 " ) "
11+ shift 4
1112
1213CARGO_MANIFEST_DIR=" $( dirname " $ast_generator_manifest " ) " " $ast_generator "
13- " $codegen " --configuration-file=" $codegen_conf "
14+ " $codegen " --configuration-file=" $codegen_conf " " $@ "
You can’t perform that action at this time.
0 commit comments