diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-29 18:03:58 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-29 18:03:58 -0600 |
| commit | 16c3fd9f3d3dd6667c1966d6a62e56bf9deed0fd (patch) | |
| tree | dd734e96c6aa0459c0a4a0fca8ba271f6f486e40 /src | |
| parent | de5c5251f81106d8bae689520597adf352927ec3 (diff) | |
| parent | ad1f19479c05ed4eeaaba8f207a61e3d48b0a0b7 (diff) | |
| download | rust-16c3fd9f3d3dd6667c1966d6a62e56bf9deed0fd.tar.gz rust-16c3fd9f3d3dd6667c1966d6a62e56bf9deed0fd.zip | |
Rollup merge of #43549 - alexcrichton:build-llvm, r=Mark-Simulacrum
rustbuild: Enable building LLVM I use this from time to time debugging LLVM builds, useful to have!
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/builder.rs | 4 | ||||
| -rw-r--r-- | src/bootstrap/native.rs | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 2f6e3ca9253..811c7df5d99 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -28,6 +28,7 @@ use check; use flags::Subcommand; use doc; use tool; +use native; pub use Compiler; @@ -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, diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index bb80674c887..1da277cf181 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -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; |
