mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-03 18:45:55 +00:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QWhMwdqJYQKQq8RCLSL1LT
This commit is contained in:
@@ -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"])?;
|
||||
|
||||
Reference in New Issue
Block a user