From c35fd77f61fed36d241c507d68972a93d00764a8 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 21 Oct 2026 01:36:36 -0400 Subject: [PATCH] solidcraft-smlib: rebuild SMLib when its own sources change build.rs asked Cargo to rerun only when capi/ changed, so a fix in the fork's source/ (SMLib or SM_API) left the old objects linked: the tests kept crashing on a kernel bug already fixed on disk. It now watches source/ too. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01QWhMwdqJYQKQq8RCLSL1LT --- crates/smlib/build.rs | 2 ++ 1 file changed, 2 insertions(+) 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"])?;