We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3fd92b commit 63a2322Copy full SHA for 63a2322
prusti-contracts-build/build.rs
@@ -61,7 +61,12 @@ fn main() {
61
/// reexport specs if any of the `cargo-prusti`/`prusti-{rustc,driver}` changed, and so
62
/// we manually force that here by deleting the `PRUSTI_LIBS` files.
63
fn force_reexport_specs(target: &std::path::Path) {
64
- if let Ok(files) = std::fs::read_dir(target.join("release").join("deps")) {
+ let deps_dir = if cfg!(debug_assertions) {
65
+ target.join("debug").join("deps")
66
+ } else {
67
+ target.join("release").join("deps")
68
+ };
69
+ if let Ok(files) = std::fs::read_dir(deps_dir) {
70
let libs =
71
prusti_utils::launch::PRUSTI_LIBS.map(|lib| format!("lib{}-", lib.replace('-', "_")));
72
for file in files {
0 commit comments