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
+
1
3
_args = [
2
4
"//rust/ast-generator" ,
3
5
"//rust/ast-generator:manifest" ,
@@ -15,3 +17,16 @@ sh_binary(
15
17
"//misc/bazel:sh_runfiles" ,
16
18
],
17
19
)
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")"
8
8
ast_generator_manifest=" $( rlocation " $2 " ) "
9
9
codegen=" $( rlocation " $3 " ) "
10
10
codegen_conf=" $( rlocation " $4 " ) "
11
+ shift 4
11
12
12
13
CARGO_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