Skip to content

Commit

Permalink
rustbuild: Enable building LLVM
Browse files Browse the repository at this point in the history
I use this from time to time debugging LLVM builds, useful to have!
  • Loading branch information
alexcrichton committed Jul 29, 2017
1 parent ad36f8f commit ad1f194
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use check;
use flags::Subcommand;
use doc;
use tool;
use native;

pub use Compiler;

Expand Down Expand Up @@ -256,7 +257,8 @@ impl<'a> Builder<'a> {
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,
Expand Down
4 changes: 4 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ impl Step for Llvm {
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;
Expand Down

0 comments on commit ad1f194

Please sign in to comment.