Skip to content

Commit

Permalink
Ensure storage markers are kept in std code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhassan-aws committed Mar 14, 2024
1 parent a52564d commit fc512ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kani-driver/src/call_single_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl KaniSession {
"-Z",
"panic_abort_tests=yes",
"-Z",
"sanitizer=address",
"mir-enable-passes=-RemoveStorageMarkers",
]
.map(OsString::from),
);
Expand Down
9 changes: 8 additions & 1 deletion tools/build-kani/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ fn build_kani_lib(
"--message-format",
"json-diagnostic-rendered-ansi",
];
let mut rustc_args = vec!["--cfg=kani", "--cfg=kani_sysroot", "-Z", "always-encode-mir"];
let mut rustc_args = vec![
"--cfg=kani",
"--cfg=kani_sysroot",
"-Z",
"always-encode-mir",
"-Z",
"mir-enable-passes=-RemoveStorageMarkers",
];
rustc_args.extend_from_slice(extra_rustc_args);
let mut cmd = Command::new("cargo")
.env("CARGO_ENCODED_RUSTFLAGS", rustc_args.join("\x1f"))
Expand Down

0 comments on commit fc512ac

Please sign in to comment.