about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2017-04-02Vastly improve the help output.Nathan Stocks-27/+26
- Don't print 'unknown subcommand' at the top of the help message. The help message now clearly instructs the user to provide a subcommand. - Clarify the usage line. Subcommand is required. Don't echo invalid input back out in the usage line (what the...???). args renamed to paths, because that's what all the args are referred to elsewhere. - List the available subcommands immediately following the usage line. It's the one required argument, after all. - Slightly improve the extra documentation for the build, test, and doc commands. - Don't print 'Available invocations:' at all. It occurred immediately before 'Available paths:'. - Clearly state that running with '-h -v' will produce a list of available paths.
2017-03-30Don't print build statistics if we explicitly asked for the help message.Nathan Stocks-2/+4
2017-03-30When dealing with the list of all possible subcommands, deal with them in ↵Nathan Stocks-7/+7
the same order to ease comparing the sections of code in order. I chose the order that appears in the help text, because that is most likely to have been ordered with specific reasoning.
2017-03-30Refer to a subcommand as a subcommand.Nathan Stocks-16/+15
For some reason 'command' and 'subcommand' were intermixed to mean the same thing. Lets just call it the one thing that it is.
2017-03-30Fix stage0->stage1 build when using "pthreads" mingw compiler.Vadim Chugunov-1/+10
2017-03-30Auto merge of #40524 - alexcrichton:update-bootstrap, r=alexcrichtonbors-13/+6
rustbuild: Update bootstrap compiler Now that we've also updated cargo's release process this commit also changes the download location of Cargo from Cargos archives back to the static.r-l.o archives. This should ensure that the Cargo download is the exact Cargo paired with the rustc that we release.
2017-03-29rustbuild: Update bootstrap compilerAlex Crichton-13/+6
Now that we've also updated cargo's release process this commit also changes the download location of Cargo from Cargos archives back to the static.r-l.o archives. This should ensure that the Cargo download is the exact Cargo paired with the rustc that we release.
2017-03-27Rollup merge of #40852 - ollie27:rustbuild_compiler_docs, r=alexcrichtonAlex Crichton-0/+8
rustbuild: Fix compiler docs again The docs need to be built with the rustbuild feature so the correct stability attributes (rustc_private) get applied. r? @alexcrichton
2017-03-27rustbuild: Fix compiler docs againOliver Middleton-0/+8
The docs need to be built with the rustbuild feature so the correct stability attributes (rustc_private) get applied.
2017-03-27Fix various useless derefs and slicingsOliver Schneider-1/+1
2017-03-23Auto merge of #40515 - alexcrichton:tarball-names, r=brsonbors-8/+16
rustbuild: Don't hardcode 'nightly' for Cargo It now follows rustc release trains. I also had to land this commit on beta (https://github.com/rust-lang/rust/commit/0a27a8713bdca09564ffd298fce8f760e47775af) before https://github.com/rust-lang/rust/pull/40484 could land, so this is basically just a forward port (if you will) of that commit to master.
2017-03-21appveyor: Use Ninja to build LLVM on MinGWAlex Crichton-3/+3
I have a suspicion that MinGW's make is the cause of #40546 rather than anything else, but that's purely a suspicion without any facts to back it up. In any case we'll eventually be moving the MSVC build over to Ninja in order to leverage sccache regardless, so this commit simply jumpstarts that process by downloading Ninja for use by MinGW anyway. I'm not sure if this closes #40546 for real, but this is my current best shot at closing it out, so... Closes #40546
2017-03-21rustbuild: Don't hardcode 'nightly' for CargoAlex Crichton-8/+16
It now follows rustc release trains
2017-03-21Auto merge of #40693 - frewsxcv:rollup, r=frewsxcvbors-3/+89
Rollup of 10 pull requests - Successful merges: #40229, #40312, #40332, #40502, #40556, #40576, #40667, #40671, #40681, #40685 - Failed merges:
2017-03-20Rollup merge of #40681 - est31:nightlies_txt_was_removed, r=alexcrichtonCorey Farwell-2/+2
config.toml.example: nightlies.txt got removed Instead, stage0.txt got introduced. See also commit 02538d463a350f5c3658f7aabefca16eb599d31c
2017-03-20travis: Don't set `RUST_LOG` globallyAlex Crichton-0/+5
I have a suspicion that this caused a large regression in cycle times by forcing the compiler to perform more checks on every `debug!` statement, so let's test this out by removing the `RUST_LOG` env var globally. This regression in cycle time was witnessed between [two] [builds] where the [PR] in question didn't do much suspicious. Judging by how the stage0 times *also* regressed though then this is my best guess. [two]: https://travis-ci.org/rust-lang/rust/builds/210149932 [builds]: https://travis-ci.org/rust-lang/rust/builds/210179995 [PR]: https://github.com/rust-lang/rust/pull/40446
2017-03-20config.toml.example: nightlies.txt got removedest31-2/+2
Instead, stage0.txt got introduced. See also commit 02538d463a350f5c3658f7aabefca16eb599d31c
2017-03-20skip nostarch directorysteveklabnik-0/+10
This is for coordinating with our publishers; we don't ever want to test it.
2017-03-20fix whitespacesteveklabnik-1/+1
2017-03-20Fix up some issues.steveklabnik-1/+14
Becuase I had run a `x.py doc` before doing this work, I had accidentally relied on some files existing in places that they didn't need to be.
2017-03-20Render redirect pages.steveklabnik-0/+9
These pages will help people who have links to the older book.
2017-03-20build book indexsteveklabnik-0/+49
2017-03-20build both editions of the booksteveklabnik-1/+6
2017-03-19Rollup merge of #40554 - nrc:rls-data, r=alexcrichtonCorey Farwell-2/+30
Use rls-data crate This basically pulls out a bunch of data structures used by save-analysis for serialization into an external crate, and pulls that crate in using Rustbuild. The RLS can then share these data structures with the compiler which in some cases will allow more efficient communication between the compiler and the RLS (i.e., without serialisation). Along the way, I have to pull in rls-span, which is the RLS's way of defining spans (more type-safe than the compiler's built-in way). This is basically just to convert from compiler spans to RLS spans. I also pull in the crates.io version of rustc-serialize, which is a bit annoying, but seems to be the only way to have serialisable data in an external crate. To make this work, all of the save-analysis crate has to use this version too (cc #40527). Finally I pull in a line from #40347 to make the unstable crate checking stuff working. There are a lot of changes to save-analysis but they are all mechanical and trivial - changing from using `From` to `Into` (because of orphan rules) being the main thing. r? @alexcrichton
2017-03-19Rollup merge of #40562 - mbrubeck:bootstrap, r=alexcrichtonCorey Farwell-6/+6
Remove unused param from bootstrap::clean::rm_rf None
2017-03-18Auto merge of #40482 - wagenet:fix-old-macos, r=alexcrichtonbors-0/+9
Target builds for older macOS Fix #40481
2017-03-17Rollup merge of #40545 - alexcrichton:retry-download-openssl, r=nikomatsakisCorey Farwell-3/+18
rustbuild: Retry downloads of OpenSSL source We need this to compile Cargo and we download it at build time, but as like all other network requests it has a chance of failing. This commit moves the source of the tarball to a mirror (S3 seems semi-more-reliable most of the time) and also wraps the download in a retry loop. cc #40474
2017-03-17Rollup merge of #40457 - frewsxcv:frewsxcv-macos, r=steveklabnikCorey Farwell-6/+6
Update usages of 'OSX' (and other old names) to 'macOS'. As of last year with version 'Sierra', the Mac operating system is now called 'macOS'.
2017-03-17Fix handlebars failure by using the `rustbuild` feature less indiscriminately.Nick Cameron-3/+30
2017-03-15Remove unused param from bootstrap::clean::rm_rfMatt Brubeck-6/+6
2017-03-15rustbuild: Retry downloads of OpenSSL sourceAlex Crichton-3/+18
We need this to compile Cargo and we download it at build time, but as like all other network requests it has a chance of failing. This commit moves the source of the tarball to a mirror (S3 seems semi-more-reliable most of the time) and also wraps the download in a retry loop. cc #40474
2017-03-15Auto merge of #40383 - ishitatsuyuki:easy-dist-analysis, r=alexcrichtonbors-10/+17
rustbuild: Make save-analysis an option This makes save-analysis an option independent from the release channel. The CI build scripts have been modified to enable the flag. *Merge with caution.* I haven't tested this, and this can cause nightly breakage.
2017-03-15Handle feature=rustbuildNick Cameron-0/+1
Taken from https://github.com/rust-lang/rust/pull/40347/files And update rls-span to a version with the rustbuild boilerplate
2017-03-14Target builds for older macOSPeter Wagenet-0/+9
2017-03-13Auto merge of #40329 - petrochenkov:llreuse, r=alexcrichtonbors-13/+19
rustbuild: Add option for enabling partial LLVM rebuilds @alexcrichton , you probably didn't notice my [late comment](https://github.com/rust-lang/rust/pull/40236#issuecomment-284160749) on https://github.com/rust-lang/rust/pull/40236, but here's an implementation of that suggestion, it supersedes https://github.com/rust-lang/rust/pull/40236/commits/c652a4fb566ac4bec1d62c66769dd055ad239df6. r? @alexcrichton
2017-03-13Auto merge of #40448 - ollie27:rustbuild_docs_compiler, r=alexcrichtonbors-15/+23
rustbuild: Fix compiler docs * Make sure std docs are generated before compiler docs so rustdoc uses relative links. * Don't document the rustc and rustdoc binary crates as they overwrite the real rustc and rustdoc crates. Fixes #40217 r? @alexcrichton
2017-03-12Update usages of 'OSX' (and other old names) to 'macOS'.Corey Farwell-6/+6
As of last year with version 'Sierra', the Mac operating system is now called 'macOS'.
2017-03-12Update Cargo to fix nightly channelAlex Crichton-2/+15
This commit updates Cargo with rust-lang/cargo#3820 which includes a fix for rust-lang/cargo#3819. At the same time this also slightly tweaks how rustbuild builds cargo to ensure that all the build information (including git info and such) makes its way into the binary. Closes rust-lang/cargo#3820
2017-03-12Allow cleaning llvm build dir to failAlex Crichton-1/+1
It may not exist, so we don't want to spuriously generate an error.
2017-03-12Default llvm.clean-rebuild to falseVadim Petrochenkov-6/+4
2017-03-12rustbuild: Add option for enabling partial LLVM rebuildsVadim Petrochenkov-13/+21
2017-03-12Auto merge of #39770 - alexcrichton:configure-clean, r=brsonbors-12/+26
Delete more swaths of the configure script This PR deletes more swaths of the `./configure` script which are either no longer necessary or already available in rustbuild (where an implementation is preferred)
2017-03-12rustbuild: Fix testsOliver Middleton-9/+9
Use the same step names as the actual build.
2017-03-12rustbuild: Fix compiler docsOliver Middleton-6/+14
* Make sure std docs are generated before compiler docs so rustdoc uses relative links. * Don't document the rustc and rustdoc binary crates as they overwrite the real rustc and rustdoc crates.
2017-03-11rustbuild: Fix a bug when manifesting with CargoAlex Crichton-1/+1
The wrong Cargo version was passed down so it ended up panicking the build-manifest script as it couldn't find the right tarball.
2017-03-11configure: Remove --build detectionAlex Crichton-12/+26
This commit removes detection of CFG_OSTYPE and CFG_CPUTYPE from the configure script, which means that the default value of `--build` is no longer present in the configure script. All this logic is now available in rustbuild itself, so there's no need to duplicate it.
2017-03-11Auto merge of #40199 - alexcrichton:doc-proc-macro, r=brsonbors-10/+205
rustbuild: Build documentation for `proc_macro` This commit fixes #38749 by building documentation for the `proc_macro` crate by default for configured hosts. Unfortunately did not turn out to be a trivial fix. Currently rustbuild generates documentation into multiple locations: one for std, one for test, and one for rustc. The initial fix for this issue simply actually executed `cargo doc -p proc_macro` which was otherwise completely elided before. Unfortunately rustbuild was the left to merge two documentation trees together. One for the standard library and one for the rustc tree (which only had docs for the `proc_macro` crate). Rustdoc itself knows how to merge documentation files (specifically around search indexes, etc) but rustbuild was unaware of this, so an initial fix ended up destroying the sidebar and the search bar from the libstd docs. To solve this issue the method of documentation has been tweaked slightly in rustbuild. The build system will not use symlinks (or directory junctions on Windows) to generate all documentation into the same location initially. This'll rely on rustdoc's logic to weave together all the output and ensure that it ends up all consistent. Closes #38749
2017-03-11rustbuild: Add save-analysis to installTatsuyuki Ishi-0/+4
2017-03-11rustbuild: Skip saving analysis when disabledTatsuyuki Ishi-0/+4
2017-03-11rustbuild: Make save-analysis an optionTatsuyuki Ishi-10/+9