File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ const JSON_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/src/gen/extension_
23
23
24
24
pub fn load_gdextension_json ( watch : & mut StopWatch ) -> String {
25
25
let json_path = Path :: new ( JSON_PATH ) ;
26
- rerun_on_changed ( json_path) ;
26
+
27
+ // Listening to changes on files that are generated by this build step cause an infinite loop with cargo watch of
28
+ // build -> detect change -> rebuild -> detect change -> ...
29
+ // rerun_on_changed(json_path);
27
30
28
31
let godot_bin = locate_godot_binary ( ) ;
29
32
rerun_on_changed ( & godot_bin) ;
@@ -72,7 +75,9 @@ pub fn write_gdextension_headers(
72
75
// }
73
76
} ;
74
77
75
- rerun_on_changed ( inout_h_path) ;
78
+ // Listening to changes on files that are generated by this build step cause an infinite loop with cargo watch of
79
+ // build -> detect change -> rebuild -> detect change -> ...
80
+ // rerun_on_changed(inout_h_path);
76
81
patch_c_header ( inout_h_path, is_engine_4_0) ;
77
82
watch. record ( "patch_header_h" ) ;
78
83
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ use std::path::Path;
9
9
10
10
pub ( crate ) fn generate_rust_binding ( in_h_path : & Path , out_rs_path : & Path ) {
11
11
let c_header_path = in_h_path. display ( ) . to_string ( ) ;
12
- println ! ( "cargo:rerun-if-changed={}" , c_header_path) ;
12
+
13
+ // Listening to changes on files that are generated by this build step cause an infinite loop with cargo watch of
14
+ // build -> detect change -> rebuild -> detect change -> ...
15
+ // println!("cargo:rerun-if-changed={}", c_header_path);
13
16
14
17
let builder = bindgen:: Builder :: default ( )
15
18
. header ( c_header_path)
You can’t perform that action at this time.
0 commit comments