Skip to content

Commit

Permalink
fix(rsjudge-grpc): 🩹 no rebuild on OUT_DIR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Mar 30, 2024
1 parent 5d73559 commit b31aaae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/rsjudge-grpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ fn main() -> anyhow::Result<()> {
);

for proto in protos {
configure().compile(&[proto_out_dir.join(proto)], &[&proto_out_dir])?;
configure()
.emit_rerun_if_changed(false)
.compile(&[proto_out_dir.join(proto)], &[&proto_out_dir])?;
}

println!("cargo:rerun-if-changed=proto");
Expand Down

0 comments on commit b31aaae

Please sign in to comment.