You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we run sub-commands with a different PATH so they can find the bundled
`gcc.exe` that we ship with the `*-windows-gnu` host compilers. The current
logic, however, *prepends* to `PATH` which means that if the system has a `gcc`
installed it will not be used over the bundled `gcc`.
This can cause problems, however, if the system gcc is used to compile native
code and the Rust compiler then links everything with the bundled gcc. The
standard library in both situations can be subtly different (the C standard
library), and this can lead to errors such as rust-lang/flate2-rs#27.
This commit switches the ordering by appending our own tools to `PATH` instead
of prepending, so the system tools will be favored over the bundled ones (which
are intended to only be used as a last resort anyway).
0 commit comments