Skip to content

--proto_path and input_files options for ProtoGenConfig #13

@thng292

Description

@thng292

I'm trying to generate code using some (not all) proto files from https://github.com/openxla/xla but there isn't any options to specify which file to generate zig code from.

Here is a working protoc command for my use case:

protoc --cpp_out=lasfd \
  --proto_path . --proto_path third_party/tsl \
  "xla/autotune_results.proto" \
  "xla/autotuning.proto" \
  "xla/pjrt/proto/compile_options.proto" \
  "xla/stream_executor/cuda/cuda_compute_capability.proto" \
  "xla/stream_executor/device_description.proto" \
  "xla/tsl/protobuf/dnn.proto" \
  "xla/service/hlo.proto" \
  "xla/service/metrics.proto" \
  "xla/xla_data.proto" \
  "xla/xla.proto"

There should be more ways to specify inputs and an options to specify imports directories.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions