Skip to content

Commit 07fa6f8

Browse files
committed
Revert "Pass -Z no-codegen when invoking rustc."
This reverts commit c6d3179.
1 parent c6d3179 commit 07fa6f8

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,6 @@ Several `-Z` flags are relevant for Miri:
172172
sets this flag per default.
173173
* `-Zmir-emit-retag` controls whether `Retag` statements are emitted. Miri
174174
enables this per default because it is needed for validation.
175-
* `-Zno-codegen` makes rustc skip generating LLVM IR for MIR (though it still
176-
writes out empty object files). This is needed to prevent rustc from trying
177-
to codegen certain panic-related intrinsics, which will not work with a
178-
`libpanic_unwind` compiled in `cfg(miri)` mode. It also speeds up
179-
building our custom libstd.
180175

181176
Moreover, Miri recognizes some environment variables:
182177

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ pub use crate::eval::{eval_main, create_ecx, MiriConfig};
5151
/// Insert rustc arguments at the beginning of the argument list that Miri wants to be
5252
/// set per default, for maximal validation power.
5353
pub fn miri_default_args() -> &'static [&'static str] {
54-
&["-Zalways-encode-mir", "-Zmir-emit-retag", "-Zmir-opt-level=0", "-Zno-codegen", "--cfg=miri"]
54+
&["-Zalways-encode-mir", "-Zmir-emit-retag", "-Zmir-opt-level=0", "--cfg=miri"]
5555
}

0 commit comments

Comments
 (0)