From d68920741907ebbf80a7852ebc371fcadc7c6b75 Mon Sep 17 00:00:00 2001 From: Jack Rusher Date: Tue, 21 Mar 2023 09:32:56 +0100 Subject: [PATCH] Make rustc task depend on lib.rs --- bb.edn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bb.edn b/bb.edn index 09dc46c..1e154e6 100644 --- a/bb.edn +++ b/bb.edn @@ -28,7 +28,8 @@ "-J-Xmx3g"))} rustc {:doc "Build Rust binary" :depends [native-image] - :task (when (seq (fs/modified-since "target" libsci)) + :task (when (or (seq (fs/modified-since "target" libsci)) + (seq (fs/modified-since (str "target/debug/libscimacs." lib-ext) "src/lib.rs"))) (shell "cargo build"))} all {:doc "Build all"