diff --git a/crates/smlib/build.rs b/crates/smlib/build.rs index dca8a9bf3..bc9f0af6f 100644 --- a/crates/smlib/build.rs +++ b/crates/smlib/build.rs @@ -35,6 +35,8 @@ fn build() -> Result<(), String> { )); } println!("cargo:rerun-if-changed={}", root.join("capi").display()); + // SMLib's own sources too: a fix to the kernel must rebuild it. + println!("cargo:rerun-if-changed={}", root.join("source").display()); let src = root.join("source"); let core = sources(&src.join("SMLib/src"), &["StdAfx.cpp", "SmDllMain.cpp"])?; let api = sources(&src.join("SM_API/src"), &["StdAfx.cpp"])?;