From 80a79aa3a5d2cd1e90b6853a8b6ac4fa2f7d84f8 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Fri, 19 Jan 2024 13:16:25 +0100 Subject: [PATCH] make `build.rs` faster by rerun only if `build.rs` changes --- apis/c/operator/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apis/c/operator/build.rs b/apis/c/operator/build.rs index 6d45fd00..93414639 100644 --- a/apis/c/operator/build.rs +++ b/apis/c/operator/build.rs @@ -7,6 +7,5 @@ fn main() { // don't rebuild on changes (otherwise we rebuild on every run as we're // writing the `operator_types.h` file; cargo will still rerun this script // when the `dora_operator_api_types` crate changes) - println!("cargo:rerun-if-changed=../../rust/operator/types/src/lib.rs"); - println!("cargo:rerun-if-changed=operator_api.h"); + println!("cargo:rerun-if-changed=build.rs"); }