summary refs log tree commit diff
path: root/src/bootstrap/tool.rs
AgeCommit message (Collapse)AuthorLines
2017-09-28Update to the `cc` crateAlex Crichton-0/+4
This is the name the `gcc` crate has moved to
2017-09-27Add RLS and Rustfmt to the toolstate mechanismNick Cameron-2/+2
2017-09-26Allow rustdoc to get compiled with debuginfoMark Simulacrum-0/+5
2017-09-19Disable clippy buildingOliver Schneider-1/+1
2017-09-19Add clippy to `toolstate.toml`Oliver Schneider-2/+2
2017-09-17Rebase falloutOliver Schneider-0/+1
2017-09-17Add a file to trivially disable tool building or testingOliver Schneider-3/+13
2017-09-17Get the miri test suite to run inside the rustc dev environmentOliver Schneider-0/+35
2017-09-17Rollup merge of #44533 - nrc:rustfmt-submod, r=alexcrichtonTim Neumann-0/+34
Add Rustfmt r? @alexcrichton
2017-09-16Rollup merge of #44616 - alexcrichton:rustdoc-fix-again-whee, r=Mark-SimulacrumAlex Crichton-3/+5
rustbuild: Fix test "test rustdoc" invocation Previously it would use the librustc output directory which would cause rustdoc to get entirely recompiled, whereas the intention is that it uses the already-compiled artifacts from building rustdoc itself, using the tool output directory
2017-09-15rustbuild: Fix test "test rustdoc" invocationAlex Crichton-3/+5
Previously it would use the librustc output directory which would cause rustdoc to get entirely recompiled, whereas the intention is that it uses the already-compiled artifacts from building rustdoc itself, using the tool output directory
2017-09-15rustbuild: Compile the error-index in stage 2Alex Crichton-2/+14
Right now we comiple rustdoc in stage 2 and the error index in stage 0, which ends up compiling rustdoc twice! To avoid compiling rustdoc twice (which takes awhile) let's just compile it once in stage 2.
2017-09-13Build and test RustfmtNick Cameron-0/+34
2017-09-09rustbuild: Switch back to using hard linksAlex Crichton-5/+15
The `copy` function historically in rustbuild used hard links to speed up the copy operations that it does. This logic was backed out, however, in #39518 due to a bug that only showed up on Windows, described in #39504. The cause described in #39504 happened because Cargo, on a fresh build, would overwrite the previous artifacts with new hard links that Cargo itself manages. This behavior in Cargo was fixed in rust-lang/cargo#4390 where it no longer should overwrite files on fresh builds, opportunistically leaving the filesystem intact and not touching it. Hopefully this can help speed up local builds by doing fewer copies all over the place!
2017-09-03Auto merge of #44176 - nrc:update-rls, r=alexcrichtonbors-0/+1
Update rls And expose the `CFG_VERSION` env var to tools so they can determine the version of Rust. This gets the RLS back on master and so completes the PR dance for the generators PR. r? @alexcrichton
2017-09-02Auto merge of #43886 - oli-obk:clippy, r=nrcbors-0/+38
Add clippy as a submodule ~~This builds clippy as part of `./x.py build` (locally and in CI).~~ This allows building clippy with `./x.py build src/tools/clippy` ~~Needs https://github.com/nrc/dev-tools-team/issues/18#issuecomment-322456461 to be resolved before it can be merged.~~ Contributers can simply open a PR to clippy and point the submodule at the `pull/$pr_number/head` branch. This does **not** build clippy or test the clippy test suite at all as per https://github.com/nrc/dev-tools-team/issues/18#issuecomment-321411418 r? @nrc cc @Manishearth @llogiq @mcarton @alexcrichton
2017-08-31Set CFG_VERSION env var for tool buildsNick Cameron-0/+1
2017-08-28rustbuild: Fix dependencies of build-manifestAlex Crichton-1/+1
No need to depend on librustc! All we need is libstd Closes #44140
2017-08-24Require adding clippy's path to the `x.py` invocationOliver Schneider-1/+1
2017-08-15Add clippy as a submoduleOliver Schneider-0/+38
2017-08-13Build rustdoc with the native build tripleMark Simulacrum-1/+1
2017-08-13Cargotest needs only one rustdoc.exe to exist on WindowsMark Simulacrum-1/+4
2017-08-13Clean tools after building libstd/libtest/librustc.Mark Simulacrum-6/+4
This fixes the bug we previously had where we'd build a libtest tool after building a libstd tool and clear out the libstd tool. Since we clear out all tools for a given stage on invocations of CleanTools after lib{std, test, rustc} change, we need to make sure that all tools built with that stage will be built after the clearing is done. The fix contained here technically isn't perfect; there is still an edge case of compiling a libstd tool, then compiling libtest, which will clear out the libstd tool and it won't ever get rebuilt within that session of rustbuild. This is where the caching system used today shows it's problems -- in effect, all tools depend on a global counter of the stage being cleared out. We can implement such a counter in a future patch to ensure that tools are rebuilt as needed, but it is deemed unlikely that it will be required in practice, since most if not all tools are built after the relevant stage's std/test/rustc are built, though this is only an opinion and hasn't been verified.
2017-08-13Build rustdoc only at the top stageMark Simulacrum-3/+3
2017-08-13Build rustdoc with the stageN compiler in N >= 2.Mark Simulacrum-0/+4
This permits proc macro crates to correctly work with rustdoc.
2017-08-13Make the message for building rustdoc slightly nicerMark Simulacrum-32/+48
2017-08-13Add ability to ignore git when building rust.Mark Simulacrum-1/+1
Some users of the build system change the git sha on every build due to utilizing git to push changes to a remote server. This allows them to simply configure that away instead of depending on custom patches to rustbuild.
2017-07-27Correct a few run.host invocations where run.target is intended.Mark Simulacrum-3/+3
2017-07-27Explain why we subtract one from the stageMark Simulacrum-0/+3
2017-07-27Build rustdoc on-demand.Mark Simulacrum-1/+52
Rustdoc is no longer compiled in every stage, alongside rustc, instead it is only compiled when requested, and generally only for the last stage.
2017-07-27Change tools to take a compiler instead of a stage.Mark Simulacrum-32/+29
2017-07-25Bump master to 1.21.0Alex Crichton-1/+1
This commit bumps the master branch's version to 1.21.0 and also updates the bootstrap compiler from the freshly minted beta release.
2017-07-20Change make_run signature to taking a RunConfig struct for refactorability.Mark Simulacrum-32/+18
2017-07-20Add an optional condition to constrain defaults.Mark Simulacrum-8/+4
Utilized primarily to not be a default rule unless some configuration is given (e.g., compiler docs are enabled).
2017-07-20Remove step.rs commentsMark Simulacrum-91/+0
2017-07-20Fix a few issues found by comparing past/presentMark Simulacrum-6/+6
2017-07-20Implement available paths list.Mark Simulacrum-13/+13
2017-07-20Require should_run to be implemented.Mark Simulacrum-0/+8
2017-07-20Utilize interning to allow Copy/Clone stepsMark Simulacrum-49/+58
2017-07-20Remove core_intrinsics feature gateMark Simulacrum-0/+6
2017-07-20Cleanups and fixes throughoutMark Simulacrum-3/+3
2017-07-20Fix more incorrectly transitioned codeMark Simulacrum-5/+30
2017-07-20Update to toml 0.4Mark Simulacrum-1/+1
2017-07-20Finish fixing warnings and errors. Bootstrap builds.Mark Simulacrum-1/+1
2017-07-20Fix tool_cmdMark Simulacrum-3/+5
2017-07-20Move tool_cmd to tool.rsMark Simulacrum-0/+41
2017-07-20Fixes warnings and errors introduced while moving code aroundMark Simulacrum-9/+6
2017-07-20Change code to work with the new systemMark Simulacrum-80/+249
2017-07-20Move code into Step trait implementations.Mark Simulacrum-0/+205
No changes are introduced to code body. This commit will not build; it is done to permit a better diff in later commits.