rustbuild: Enable building LLVM

I use this from time to time debugging LLVM builds, useful to have!
This commit is contained in:
Alex Crichton 2017-07-29 13:39:43 -07:00
parent ad36f8feba
commit ad1f19479c
2 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,7 @@
use flags::Subcommand;
use doc;
use tool;
use native;
pub use Compiler;
@ -256,7 +257,8 @@ macro_rules! describe {
compile::StartupObjects, tool::BuildManifest, tool::Rustbook, tool::ErrorIndex,
tool::UnstableBookGen, tool::Tidy, tool::Linkchecker, tool::CargoTest,
tool::Compiletest, tool::RemoteTestServer, tool::RemoteTestClient,
tool::RustInstaller, tool::Cargo, tool::Rls, tool::Rustdoc),
tool::RustInstaller, tool::Cargo, tool::Rls, tool::Rustdoc,
native::Llvm),
Kind::Test => describe!(check::Tidy, check::Bootstrap, check::DefaultCompiletest,
check::HostCompiletest, check::Crate, check::CrateLibrustc, check::Linkcheck,
check::Cargotest, check::Cargo, check::Rls, check::Docs, check::ErrorIndex,

View File

@ -48,6 +48,10 @@ fn should_run(run: ShouldRun) -> ShouldRun {
run.path("src/llvm")
}
fn make_run(run: RunConfig) {
run.builder.ensure(Llvm { target: run.target })
}
/// Compile LLVM for `target`.
fn run(self, builder: &Builder) {
let build = builder.build;