Skip to content

Commit b18278e

Browse files
committed
See if we can run the protoc plugin in the default context when generating google types
1 parent 077b594 commit b18278e

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • src/google_types

src/google_types/dune

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
(rule
1414
(targets any.ml api.ml descriptor.ml duration.ml empty.ml field_mask.ml
1515
source_context.ml struct.ml timestamp.ml type.ml wrappers.ml)
16-
(deps
17-
(:plugin ../plugin/protoc_gen_ocaml.exe))
1816
(action
19-
(run protoc -I %{read-lines:google_include}
20-
"--plugin=protoc-gen-ocaml=%{plugin}"
17+
(run %{bin:protoc} -I %{read-lines:google_include}
18+
"--plugin=protoc-gen-ocaml=%{bin:protoc-gen-ocaml}"
2119
"--ocaml_out=."
2220
%{read-lines:google_include}/google/protobuf/any.proto
2321
%{read-lines:google_include}/google/protobuf/api.proto

0 commit comments

Comments
 (0)