Skip to content

Commit

Permalink
Fix build-dev cache (#2280)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
celinval authored Mar 8, 2023
1 parent 6734785 commit bf5e697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Command aliases
[alias]
# Build kani with development configuration.
build-dev = "run -p build-kani -- build-dev"
build-dev = "run --target-dir target/tools -p build-kani -- build-dev"
# Build kani release bundle.
bundle = "run -p build-kani -- bundle"

Expand Down

0 comments on commit bf5e697

Please sign in to comment.