Skip to content

Commit bf5e697

Browse files
authored
Fix build-dev cache (rust-lang#2280)
After updating our dependencies, running `cargo build-dev` always trigger the recompilation of a few dependencies as well as `kani-driver` and `kani-compiler`. This seems to be caused by [this change](bytecodealliance/rustix#544) on `rustix` dependency. The problem here is that we share the same build folder for our tools and our binaries. But they build with slightly different cargo arguments, and this package decided to make their build script very sensitive to changes to their environment To overcome this, force `cargo build-dev` to use a different folder for the tools build.
1 parent 6734785 commit bf5e697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Command aliases
55
[alias]
66
# Build kani with development configuration.
7-
build-dev = "run -p build-kani -- build-dev"
7+
build-dev = "run --target-dir target/tools -p build-kani -- build-dev"
88
# Build kani release bundle.
99
bundle = "run -p build-kani -- bundle"
1010

0 commit comments

Comments
 (0)