mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
a1e56e4420
if the call to protoc_rust::Codegen::run() fails, it fails silently (or rather, with a println! that is not displayed unless `cargo build` is invoked more verbosely) which can result in errors later on during compilation, making it hard to track the root cause. this change adds an expect call to make the code panic on error. however, due to various cfg and other changes, there can be the expectation of an `out/generated.rs` file still existing when no protos have been compiled, so we also add a quick guard for empty proto paths in the generation code. BUG=none TEST=cargo build Change-Id: If5a67a45a5de937b6569c1f631a180401b860cee Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4210068 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Maciek Swiech <drmasquatch@google.com> |
||
---|---|---|
.. | ||
lib.rs |