rust/src/librustc_driver
Alex Crichton fcd99aae0a rustc_driver: Frob the global PATH less
Environment variables are global state so this can lead to surprising results if
the driver is called in a multithreaded environment (e.g. doctests). There
shouldn't be any memory corruption that's possible, but a lot of the bots have
been failing because they can't find `cc` or `gcc` in the path during doctests,
and I highly suspect that it is due to the compiler modifying `PATH` in a
multithreaded fashion.

This commit moves the logic for appending to `PATH` to only affect the child
process instead of also affecting the parent, at least for the linking stage.
When loading dynamic libraries the compiler still modifies `PATH` on Windows,
but this may be more difficult to fix than spawning off a new process.
2015-06-17 17:38:03 -07:00
..
driver.rs rustc_driver: Frob the global PATH less 2015-06-17 17:38:03 -07:00
lib.rs Removed many pointless calls to *iter() and iter_mut() 2015-06-10 21:14:03 +01:00
pretty.rs syntax: move ast_map to librustc. 2015-06-10 02:40:45 +03:00
test.rs Cleanup: rename middle::ty::sty and its variants. 2015-06-12 11:07:16 -07:00