diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 3694bdbf670..7cf4311b985 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -139,6 +139,12 @@ fn main() { } if verbose > 1 { + let rust_env_vars = + env::vars().filter(|(k, _)| k.starts_with("RUST") || k.starts_with("CARGO")); + for (i, (k, v)) in rust_env_vars.enumerate() { + eprintln!("rustc env[{}]: {:?}={:?}", i, k, v); + } + eprintln!("rustc working directory: {}", env::current_dir().unwrap().display()); eprintln!( "rustc command: {:?}={:?} {:?}", bootstrap::util::dylib_path_var(), |
