Skip to content

Commit

Permalink
cargo-creusot: Disable incremental compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed Dec 4, 2024
1 parent 7f18d4f commit 0c275ae
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
3 changes: 3 additions & 0 deletions cargo-creusot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ fn invoke_cargo(args: &CreusotArgs, cargo_flags: Vec<String>) {
.args(cargo_flags)
.env("RUSTC", creusot_rustc_path)
.env("CARGO_CREUSOT", "1");
// Incremental compilation causes Creusot to not see all of a crate's code
// (the `mir_borrowck` hook in `creusot/src/callbacks.rs` is not called on all closures).
cmd.env("CARGO_INCREMENTAL", "0");

// Append flags to any pre-existing ones
// CARGO_ENCODED_RUSTFLAGS contains options to pass to rustc, separated by '\x1f'.
Expand Down
36 changes: 17 additions & 19 deletions creusot/tests/creusot-contracts/creusot-contracts.coma

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0c275ae

Please sign in to comment.