Skip to content

Commit b46c64c

Browse files
committed
cuh
Signed-off-by: Alexander Droste <alexander.droste@protonmail.com>
1 parent 55d2a1d commit b46c64c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎vortex-cuda/build.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ fn main() {
7373

7474
match path.extension().and_then(|e| e.to_str()) {
7575
Some("cuh") | Some("h") => {
76-
println!("cargo:rerun-if-changed={}", path.display())
76+
// Only watch hand-written .cuh/.h files, not generated ones
77+
// (generated files are rebuilt when cuda_kernel_generator changes)
78+
if !is_generated {
79+
println!("cargo:rerun-if-changed={}", path.display());
80+
}
7781
}
7882
Some("cu") => {
7983
// Only watch hand-written .cu files, not generated ones

0 commit comments

Comments
 (0)