diff options
| author | bors <bors@rust-lang.org> | 2017-11-16 03:49:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-11-16 03:49:13 +0000 |
| commit | 8385fc062dbb57c32d96d16e59d244c168103946 (patch) | |
| tree | 13664cdc046768dabba3a0964cfcfd1d144e6b5a | |
| parent | 42ea30c8b0107cced6c85f9240111d61aa3ff654 (diff) | |
| parent | 262029eca94ff4ec74d985b65d644f62fd593e5d (diff) | |
Auto merge of #46025 - nrc:rustfmt-fix, r=Mark-Simulacrum
Fix a bug where the rustfmt tarball was not being produced r? @alexcrichton This makes rustfmt a dep of 'extended', which seems to be necessary for the rustfmt dist step to actually get run.
| -rw-r--r-- | src/bootstrap/dist.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index 08403833646..7bf385301fa 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -1159,8 +1159,6 @@ impl Step for Rustfmt { t!(fs::create_dir_all(&image)); // Prepare the image directory - // We expect RLS to build, because we've exited this step above if tool - // state for RLS isn't testing. let rustfmt = builder.ensure(tool::Rustfmt { compiler: builder.compiler(stage, build.build), target @@ -1262,6 +1260,7 @@ impl Step for Extended { compiler: builder.compiler(stage, target), }); let cargo_installer = builder.ensure(Cargo { stage, target }); + let rustfmt_installer = builder.ensure(Rustfmt { stage, target }); let rls_installer = builder.ensure(Rls { stage, target }); let mingw_installer = builder.ensure(Mingw { host: target }); let analysis_installer = builder.ensure(Analysis { @@ -1299,6 +1298,7 @@ impl Step for Extended { tarballs.push(rustc_installer); tarballs.push(cargo_installer); tarballs.extend(rls_installer.clone()); + tarballs.extend(rustfmt_installer.clone()); tarballs.push(analysis_installer); tarballs.push(std_installer); if build.config.docs { @@ -1366,6 +1366,9 @@ impl Step for Extended { if rls_installer.is_none() { contents = filter(&contents, "rls"); } + if rustfmt_installer.is_none() { + contents = filter(&contents, "rustfmt"); + } let ret = tmp.join(p.file_name().unwrap()); t!(t!(File::create(&ret)).write_all(contents.as_bytes())); return ret |
