rustbuild: Compile all support tools in stage0
This commit changes all tools and such to get compiled in stage0, not in later stages. The purpose of this commit is to cut down dependencies on later stages for future modifications to the build system. Notably we're going to be adding builders that produce a full suite of cross-compiled artifacts for a particular host, and that shouldn't compile the `x86_64-unknown-linux-gnu` compiler more than once. Currently dependencies on, for example, the error index end up compiling the `x86_64-unknown-linux-gnu` compiler more than necessary. As a result here we move many dependencies on these tools to being produced by a stage0 compiler, not a stage1+ compiler. None of these tools actually need to be staged at all, so they'll exhibit consistent behavior across the stages.
This commit is contained in:
parent
7f2d2afa91
commit
254876ee73
10 changed files with 63 additions and 40 deletions
|
|
@ -7,4 +7,4 @@ build = "build.rs"
|
|||
[dependencies]
|
||||
log = "0.3"
|
||||
env_logger = { version = "0.3.5", default-features = false }
|
||||
serialize = { path = "../../libserialize" }
|
||||
rustc-serialize = "0.3"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@
|
|||
extern crate libc;
|
||||
extern crate test;
|
||||
extern crate getopts;
|
||||
|
||||
#[cfg(cargobuild)]
|
||||
extern crate rustc_serialize;
|
||||
#[cfg(not(cargobuild))]
|
||||
extern crate serialize as rustc_serialize;
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue