diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-06-06 12:37:54 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-06-12 09:33:33 +0200 |
| commit | 68d458bb402b873b9ae80423710c2672967479df (patch) | |
| tree | 13450f59f911d5c3b3bb3534460cf3f09ce15f41 /src/bootstrap/tool.rs | |
| parent | 1b5143ae13c50aeb3d8a84d838e4db54a57e8a5b (diff) | |
| download | rust-68d458bb402b873b9ae80423710c2672967479df.tar.gz rust-68d458bb402b873b9ae80423710c2672967479df.zip | |
allow mutating the c compilers detected by bootstrap
This will be needed to create synthetic targets in future commits.
Diffstat (limited to 'src/bootstrap/tool.rs')
| -rw-r--r-- | src/bootstrap/tool.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 962cbf758d4..96341b69df0 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -855,7 +855,7 @@ impl<'a> Builder<'a> { if compiler.host.contains("msvc") { let curpaths = env::var_os("PATH").unwrap_or_default(); let curpaths = env::split_paths(&curpaths).collect::<Vec<_>>(); - for &(ref k, ref v) in self.cc[&compiler.host].env() { + for &(ref k, ref v) in self.cc.borrow()[&compiler.host].env() { if k != "PATH" { continue; } |
