File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
mod version;
4
4
5
+ use std:: collections:: HashMap ;
5
6
use std:: env;
6
7
use std:: ffi:: { OsStr , OsString } ;
7
8
use std:: fmt:: Write as _;
@@ -882,7 +883,20 @@ fn phase_rustc(mut args: env::Args, phase: RustcPhase) {
882
883
883
884
// Run it.
884
885
if verbose {
885
- eprintln ! ( "[cargo-miri rustc] {:?}" , cmd) ;
886
+ eprint ! ( "[cargo-miri rustc] " ) ;
887
+ let mut envs = HashMap :: new ( ) ;
888
+ for ( key, value) in std:: env:: vars ( ) {
889
+ envs. insert ( key, value) ;
890
+ }
891
+ for ( key, value) in cmd. get_envs ( ) {
892
+ if let Some ( value) = value {
893
+ envs. insert ( key. to_str ( ) . unwrap ( ) . into ( ) , value. to_str ( ) . unwrap ( ) . to_owned ( ) ) ;
894
+ }
895
+ }
896
+ for ( key, value) in envs {
897
+ eprint ! ( "{key}={value:?} " ) ;
898
+ }
899
+ eprintln ! ( "{:?}" , cmd) ;
886
900
}
887
901
exec ( cmd) ;
888
902
You can’t perform that action at this time.
0 commit comments