Skip to content

Commit

Permalink
Set protoc path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomShift committed Feb 13, 2024
1 parent f4d7b59 commit 2fe33cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
extern crate prost_build;

fn main() {
std::env::set_var("PROTOC", "/usr/bin/protoc");

if let Err(e) = prost_build::compile_protos(&["src/neko.proto"],&["src/"]) {
println!("cargo:warning=Error occured when compiling neko.proto; did you generate it with proto_gen?");
println!("cargo:warning={}", e.to_string());
Expand Down

0 comments on commit 2fe33cf

Please sign in to comment.