about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2018-04-18Add rustc_trans to x.py checkvarkor-7/+100
2018-04-17Remove uses of Build across Builder stepsMark Simulacrum-939/+873
2018-04-17Only emit save-analysis data for `cargo build` tasksNick Cameron-1/+3
Previously, we were emittinng analysis data for all tasks, including `doc`. That meant we got two sets of save-analysis data, one from the normal build and one from the docs. That means indexing with the RLS took twice as long and made downloads larger and build times longer. cc https://github.com/rust-lang-nursery/rls/issues/826
2018-04-17Auto merge of #49542 - GuillaumeGomez:intra-link-resolution-error, ↵bors-8/+53
r=GuillaumeGomez Add warning if a resolution failed r? @QuietMisdreavus
2018-04-17Auto merge of #50012 - Zoxc:msvc-fix, r=Mark-Simulacrumbors-4/+8
Don't look for cc/cxx when testing with bogus targets This fixes test builds on Windows. r? @Mark-Simulacrum
2018-04-17Don't look for cc/cxx when testing with bogus targetsJohn Kåre Alsaker-4/+8
2018-04-16Fix empty testsGuillaume Gomez-3/+1
2018-04-16Fix nitsGuillaume Gomez-2/+0
2018-04-16Add rustdoc-ui test suiteGuillaume Gomez-8/+22
2018-04-16Add warning if a resolution failedGuillaume Gomez-0/+35
2018-04-17Rollup merge of #49959 - cuviper:debuginfo-tools, r=Mark-Simulacrumkennytm-4/+14
rustbuild: allow building tools with debuginfo Debugging information for the extended tools is currently disabled for concerns about the size. This patch adds `--enable-debuginfo-tools` to let one opt into having that debuginfo. This is useful for debugging the tools in distro packages. We always strip debuginfo into separate packages anyway, so the extra size is not a concern in regular use.
2018-04-14Rollup merge of #49922 - f-bro:zmiri, r=oli-obkkennytm-4/+1
Remove -Zmiri debugging option
2018-04-14Rollup merge of #49908 - ↵kennytm-1/+1
chrisccoulson:fix-rustdoc-themes-test-without-rpath, r=Mark-Simulacrum Fix test failure in src/tools/rustdoc-themes when rust.rpath = false See https://github.com/rust-lang/rust/issues/49907
2018-04-14Rollup merge of #49465 - ollie27:rustbuild_test_docs, ↵kennytm-1/+4
r=steveklabnik,QuietMisdreavus,frewsxcv,GuillaumeGomez Add docs for the test crate with the std docs If the compiler docs aren't going to include the test crate then it may as well be included with std. Fixes #49388
2018-04-14Rollup merge of #49876 - oli-obk:no_secret_clippy_on_stable_☹, r=nrckennytm-1/+2
Don't inject clippy into rls on stable/beta as discussed at the all-hands
2018-04-13Make debuginfo-tools always default falseJosh Stone-1/+1
2018-04-13Avoid specific claims about debuginfo sizeJosh Stone-1/+1
2018-04-13rustbuild: allow building tools with debuginfoJosh Stone-4/+14
Debugging information for the extended tools is currently disabled for concerns about the size. This patch adds `--enable-debuginfo-tools` to let one opt into having that debuginfo. This is useful for debugging the tools in distro packages. We always strip debuginfo into separate packages anyway, so the extra size is not a concern in regular use.
2018-04-13Remove -Z miri debugging optionFabio B-4/+1
2018-04-12Fix test failure in src/tools/rustdoc-themes when rust.rpath = falseChris Coulson-1/+1
2018-04-11Don't inject clippy into rls on stable/betaOliver Schneider-1/+2
2018-04-11Rollup merge of #49809 - Mark-Simulacrum:no-color-for-dumb, r=alexcrichtonkennytm-1/+3
Stop emitting color codes on TERM=dumb These terminals generally don't support color. Fixes #49191 cc @nikomatsakis r? @alexcrichton
2018-04-11Auto merge of #49715 - Mark-Simulacrum:deny-warnings, r=alexcrichtonbors-0/+23
Move deny(warnings) into rustbuild This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-09Add rustc book to the build systemsteveklabnik-2/+4
2018-04-09Stop emitting color codes on TERM=dumbMark Simulacrum-1/+3
These terminals generally don't support color. Fixes #49191
2018-04-09Auto merge of #49778 - tamird:install-relative-prefix, r=Mark-Simulacrumbors-1/+3
rustbuild: canonicalize prefix `install_sh` Testing: ``` $ git diff diff --git a/config.toml.example b/config.toml.example index 9dd3002506..b47bc490cd 100644 --- a/config.toml.example +++ b/config.toml.example @@ -196,7 +196,7 @@ [install] # Instead of installing to /usr/local, install to this path instead. -#prefix = "/usr/local" +prefix = "install-prefix" # Where to install system configuration files # If this is a relative path, it will get installed in `prefix` above $ mkdir install-prefix $ ./x.py install -i --stage 0 --config config.toml.example ... $ ls install-prefix/ bin lib share ``` Closes #36989. r? @Mark-Simulacrum
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-0/+23
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-08rustbuild: canonicalize prefix `install_sh`Tamir Duberstein-1/+3
Testing: ``` $ git diff diff --git a/config.toml.example b/config.toml.example index 9dd3002506..b47bc490cd 100644 --- a/config.toml.example +++ b/config.toml.example @@ -196,7 +196,7 @@ [install] # Instead of installing to /usr/local, install to this path instead. -#prefix = "/usr/local" +prefix = "install-prefix" # Where to install system configuration files # If this is a relative path, it will get installed in `prefix` above $ mkdir install-prefix $ ./x.py install -i --stage 0 --config config.toml.example ... $ ls install-prefix/ bin lib share ``` Closes #36989.
2018-04-08Auto merge of #49774 - danc86:configure.py-tools, r=alexcrichtonbors-1/+3
configure.py --tools should set a list instead of a string Currently the --tools option does not work because it is setting a string value for 'build.tools'. It should be a list of strings instead.
2018-04-08Auto merge of #49771 - tamird:incremental-no-stage-1, r=Mark-Simulacrumbors-7/+1
Don't default to stage 1 with incremental Closes #43177. r? @Mark-Simulacrum
2018-04-08Auto merge of #49759 - ollie27:rustbuild_cargo, r=Mark-Simulacrumbors-1/+1
rustbuild: Fix setting initial cargo Fixes #49741 r? @Mark-Simulacrum
2018-04-08configure.py --tools should set a list instead of a stringDan Callaghan-1/+3
Currently the --tools option does not work because it is setting a string value for 'build.tools'. It should be a list of strings instead.
2018-04-07Don't default to stage 1 with incrementalTamir Duberstein-7/+1
Closes #43177.
2018-04-07rustbuild: Fix setting initial cargoOliver Middleton-1/+1
2018-04-07Auto merge of #49661 - alexcrichton:bump-bootstrap, r=nikomatsakisbors-4/+2
Bump the bootstrap compiler to 1.26.0 beta Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-06bootstrap: Remove the fast pathTatsuyuki Ishi-4/+1
This is rarely noticed, but when you have old submodules, not updating them will cause you run into https://github.com/rust-lang/cargo/issues/4678.
2018-04-05Bump the bootstrap compiler to 1.26.0 betaAlex Crichton-4/+2
Holy cow that's a lot of `cfg(stage0)` removed and a lot of new stable language features!
2018-04-05Rollup merge of #49654 - davidtwco:issue-29893, r=alexcrichtonkennytm-0/+1
Host compiler documentation: Include private items Fixes #29893. Now that compiler documentation is being hosted, including private items seems sensible as these types are going to be being used by contributors working on the compiler. However, including this means that doc comments that contain codeblocks with invalid Rust and can fail the documenting of a given crate (as evidenced by the changes in the second commit included in this PR). We'd need some way of ensuring that this cannot happen so that these failures don't cause documenting to fail. I'm unsure whether this change to documentation steps will cause this to happen already or if something new will be required. r? @alexcrichton
2018-04-05Rollup merge of #49563 - japaric:std-thumb, r=alexcrichtonkennytm-35/+70
add a dist builder to build rust-std components for the THUMB targets the rust-std component only contains the core and compiler-builtins (+c +mem) crates cc #49382 - I'm not entirely sure if this PR alone will produce rust-std components installable by rustup or if something else needs to be changed - I could have done the THUMB builds in an existing builder / image; I wasn't sure if that was a good idea so I added a new image - I could build other crates like alloc into the rust-std component but, AFAICT, that would require calling Cargo a second time (one for alloc and one for compiler-builtins), or have alloc depend on compiler-builtins (#49503 will perform that change) *and* have alloc resurface the "c" and "mem" Cargo features. r? @alexcrichton
2018-04-04compile other no-std cratesJorge Aparicio-1/+4
2018-04-04Revert "create a nostd crate"Jorge Aparicio-4/+4
This reverts commit 14768f9b636ef345320ded41da5e9f3da7af3a81.
2018-04-04create a nostd crateJorge Aparicio-4/+4
the goal is to build, in a single Cargo invocation, several no-std crates that we want to put in the rust-std component of no-std targets. The nostd crate builds these crates: - core - compiler-builtin (with the "c" and "mem" features enabled) - alloc - std_unicode
2018-04-04Documenting private items in compiler docs.David Wood-0/+1
2018-04-03Stop checking that the graph produced by a dry run is equivalentMark Simulacrum-12/+4
This is too likely to cause spurious bounces on CI; what we run may be dependent on what ran successfully before hand (e.g. RLS features with Clippy), which makes this not tenable. There's no good way to ignore specifically these problematic steps so we'll just ignore everything for the time being. We still test that a dry run worked though so largely this is the same from a ensure-that-tests-work perspective. Eventually we'll want to undo this commit, though, to make our tests more accurate.
2018-04-03Fix a few accidental expectationsMark Simulacrum-12/+32
2018-04-03Avoid printing output when in dry run modeMark Simulacrum-94/+105
2018-04-03Refactor to use a dry-run config instead of cfg(test)Mark Simulacrum-293/+393
This ensures that each build will support the testing design of "dry running" builds. It's also checked that a dry run build is equivalent step-wise to a "wet" run build; the graphs we generate when running are directly compared node/node and edge/edge, both for order and contents.
2018-04-03Implement generating graphs of the build stepsMark Simulacrum-4/+46
2018-04-03Stub out less codeMark Simulacrum-25/+17
2018-04-03Add tests to rustbuildMark Simulacrum-2/+497
In order to run tests, previous commits have cfg'd out various parts of rustbuild. Generally speaking, these are filesystem-related operations and process-spawning related parts. Then, rustbuild is run "as normal" and the various steps that where run are retrieved from the cache and checked against the expected results. Note that this means that the current implementation primarily tests "what" we build, but doesn't actually test that what we build *will* build. In other words, it doesn't do any form of dependency verification for any crate. This is possible to implement, but is considered future work. This implementation strives to cfg out as little code as possible; it also does not currently test anywhere near all of rustbuild. The current tests are also not checked for "correctness," rather, they simply represent what we do as of this commit, which may be wrong. Test cases are drawn from the old implementation of rustbuild, though the expected results may vary.