Skip to content

Commit

Permalink
Make rustc task depend on lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrusher committed Mar 21, 2023
1 parent 1bd69d3 commit d689207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d689207

Please sign in to comment.