File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 45
45
# We set the rpath so that Miri finds the private rustc libraries it needs.
46
46
# We enable debug-assertions to get tracing.
47
47
# We enable line-only debuginfo for backtraces.
48
- export RUSTFLAGS=" -C link-args=-Wl,-rpath,$LIBDIR -C debug-assertions -C debuginfo=1"
48
+ export RUSTFLAGS=" -C link-args=-Wl,-rpath,$LIBDIR -C debug-assertions -C debuginfo=1 $RUSTC_EXTRA_FLAGS "
49
49
50
50
# # Helper functions
51
51
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
40
40
MemoryExtra :: new ( StdRng :: seed_from_u64 ( config. seed . unwrap_or ( 0 ) ) , config. validate ) ,
41
41
) ;
42
42
// Complete initialization.
43
- EnvVars :: init ( & mut ecx, config . communicate ) ;
43
+ EnvVars :: init ( & mut ecx) ;
44
44
45
45
// Setup first stack-frame
46
46
let main_instance = ty:: Instance :: mono ( ecx. tcx . tcx , main_id) ;
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ pub struct EnvVars {
13
13
impl EnvVars {
14
14
pub ( crate ) fn init < ' mir , ' tcx > (
15
15
ecx : & mut InterpCx < ' mir , ' tcx , Evaluator < ' tcx > > ,
16
- communicate : bool ,
17
16
) {
18
- if communicate {
17
+ if ecx . machine . communicate {
19
18
for ( name, value) in std:: env:: vars ( ) {
20
19
let value = alloc_env_value ( value. as_bytes ( ) , ecx. memory_mut ( ) ) ;
21
20
ecx. machine . env_vars . map . insert ( name. into_bytes ( ) , value) ;
Original file line number Diff line number Diff line change 8
8
FOREIGN_TARGET=i686-unknown-linux-gnu
9
9
fi
10
10
export CARGO_EXTRA_FLAGS=" --all-features"
11
+ export RUSTC_EXTRA_FLAGS=" -D warnings"
11
12
12
13
# Prepare
13
14
echo " Build and install miri"
You can’t perform that action at this time.
0 commit comments