We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074a0b8 commit ec731d4Copy full SHA for ec731d4
vortex-duckdb-ext/build.rs
@@ -145,8 +145,14 @@ fn main() {
145
.expect("error: Unable to generate bindings for vortex.h")
146
.write_to_file(crate_dir.join("include/vortex.h"));
147
148
- for entry in walkdir::WalkDir::new("cpp/") {
149
- println!("cargo:rerun-if-changed={}", entry.unwrap().path().display());
+ // Watch C/C++ source files for changes.
+ for entry in walkdir::WalkDir::new("cpp/").into_iter().flatten() {
150
+ if entry
151
+ .path()
152
+ .extension()
153
+ .map_or(false, |ext| ext == "cpp" || ext == "h" || ext == "hpp")
154
+ {
155
+ println!("cargo:rerun-if-changed={}", entry.path().display());
156
+ }
157
}
- println!("cargo:rerun-if-changed=src/cpp.rs");
158
0 commit comments