]> git.proxmox.com Git - cargo.git/commit
Fix wrong directories in PATH on Windows
authorAlex Crichton <alex@alexcrichton.com>
Fri, 4 Oct 2019 15:04:48 +0000 (08:04 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 4 Oct 2019 15:06:17 +0000 (08:06 -0700)
commit61188d791a29c1baae868f2ba0880c9d6db4092e
tree007da2f9db93f723fcc6b2260b25544b32f6592e
parent0a59a767eded80265c48cea8700ebb8c726fc4f6
Fix wrong directories in PATH on Windows

This fixes an accidental regression from #7425 where `PATH` was being
augmented on Windows with the wrong search path for target/host
libraries. This commit fixes the issue by simply always calculating the
host/target library paths for `TargetInfo`, and then we explicitly use
the same `TargetInfo` for filling out information in `Compilation`.

Closes #7475
src/cargo/core/compiler/build_context/target_info.rs
src/cargo/core/compiler/compilation.rs