Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rust/ruby-rbs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ fn main() -> Result<(), Box<dyn Error>> {
}

fn build(include_dir: &Path, src_dir: &Path) -> Result<(), Box<dyn Error>> {
// bindgen's CargoCallbacks emits rerun-if-changed for headers only, which disables
// cargo's default "watch every package file" behavior. Watch the C sources and
// headers explicitly so edits to them trigger a rebuild.
println!("cargo:rerun-if-changed={}", src_dir.display());
println!("cargo:rerun-if-changed={}", include_dir.display());

let mut build = cc::Build::new();

build.include(include_dir);
Expand Down
Loading