about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2018-12-04build the edition guideSteve Klabnik-1/+2
and update it so that links are correct
2018-12-03Rollup merge of #56419 - mark-i-m:remove-try, r=Centrilkennytm-6/+6
Remove some uses of try!
2018-12-02rustbuild: Fix issues with compiler docsOliver Middleton-6/+11
* Create output directories for crates beforehand so rustdoc uses relative links * Readd rustc_codegen_ssa * Don't build out of tree dependencies for rustdoc like we don't for rustc
2018-12-01remove some uses of try!Mark Mansi-6/+6
2018-11-30ci: Only run compare-mode tests on one builderAlex Crichton-1/+10
The run-pass test suite currently takes 30 minutes on Windows, and that appears to be roughly split between two 15 minute runs of the test suite: one without NLL and one with NLL. In discussion on Discord the platform coverage of the NLL compare mode may not necessarily be worth it, so this commit removes the NLL compare mode from tests by default, and then reenables it on only one builder.
2018-11-30Add the edition guide to doc.rust-lang.orgSteve Klabnik-0/+1
2018-11-30bootstrap: provide host `rust_test_helpers` to compiletest, not just target.Eduard-Mihai Burtescu-1/+7
2018-11-30bootstrap: don't use libraries from MUSL_ROOT on non-musl targets.Eduard-Mihai Burtescu-4/+6
2018-11-30bootstrap: ensure that `libproc_macro` is available on the host for tests ↵Eduard-Mihai Burtescu-0/+3
even when cross-compiling.
2018-11-30tests: move all proc_macro tests from -fulldeps.Eduard-Mihai Burtescu-7/+0
2018-11-29Rollup merge of #55391 - matthiaskrgr:bootstrap_cleanup, r=TimNNGuillaume Gomez-2/+2
bootstrap: clean up a few clippy findings remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.
2018-11-25Try to make top-level Cargo.toml work without __CARGO_TEST_ROOT.Eduard-Mihai Burtescu-19/+2
2018-11-22Move Cargo.{toml,lock} to the repository root directory.Eduard-Mihai Burtescu-7/+30
2018-11-21Auto merge of #56134 - oli-obk:clippy_documentation, r=nrcbors-0/+2
Forward rust version number to tools Clippy uses it to identify the correct documentation to point to cc @Manishearth @nrc sibling PR in clippy: https://github.com/rust-lang-nursery/rust-clippy/pull/3442
2018-11-21Forward rust version number to toolsOliver Scherer-0/+2
Clippy uses it to identify the correct documentation to point to
2018-11-20fix rustbuild to build all the booksSteve Klabnik-11/+15
2018-11-18Rollup merge of #55867 - RalfJung:dont-panic, r=Mark-SimulacrumPietro Albini-2/+2
do not panic just because cargo failed Currently, a rustc ICE during bootstrap shows *two* backtraces with `RUST_BACKTRACE`. Fix that by making bootstrap just exit when cargo fails. This matches what we do [when building a tool fails](https://github.com/rust-lang/rust/blob/master/src/bootstrap/tool.rs#L189) and [when other stuff (not called through `stream_cargo`, like `cargo test`) fails](https://github.com/rust-lang/rust/blob/master/src/build_helper/lib.rs#L43). Fixes https://github.com/rust-lang/rust/issues/53379
2018-11-13Rollup merge of #55870 - waywardmonkeys:typo-fixes, r=wesleywiserkennytm-1/+1
Fix typos.
2018-11-12Fix TLS errors when downloading stage0Dan Robertson-2/+2
2018-11-11std: Delete the `alloc_system` crateAlex Crichton-1/+0
This commit deletes the `alloc_system` crate from the standard distribution. This unstable crate is no longer needed in the modern stable global allocator world, but rather its functionality is folded directly into the standard library. The standard library was already the only stable location to access this crate, and as a result this should not affect any stable code.
2018-11-11Fix typos.Bruce Mitchener-1/+1
2018-11-11do not panic just because cargo failedRalf Jung-2/+2
2018-11-10Auto merge of #55626 - nikic:update-emscripten, r=alexcrichtonbors-1/+1
Update emscripten This updates emscripten to 1.38.15, which is based on LLVM 6.0.1 and would allow us to drop code for handling LLVM 4. The main issue I ran into is that exporting statics through `EXPORTED_FUNCTIONS` no longer works. As far as I understand exporting non-functions doesn't really make sense under emscripten anyway, so I've modified the symbol export code to not even try. Closes #52323.
2018-11-06Rollup merge of #55703 - pnkfelix:update-configure-help-to-reflect-pr-54811, ↵kennytm-1/+1
r=Mark-Simulacrum Update `configure --help` (via configure.py) to reflect decoupling of debug+optimize This should have been part of PR #54811 (my bad).
2018-11-06Auto merge of #55106 - petrhosek:fuchsia-lld, r=alexcrichtonbors-2/+6
Use lld directly for Fuchsia target Fuchsia already uses lld as the default linker, so there's no reason to always invoke it through Clang, instead we can simply invoke lld directly and pass the set of flags that matches Clang.
2018-11-05Use lld directly for Fuchsia targetPetr Hosek-2/+6
Fuchsia already uses lld as the default linker, so there's no reason to always invoke it through Clang, instead we can simply invoke lld directly and pass the set of flags that matches Clang.
2018-11-05This should have been part of PR #54811 (my bad).Felix S. Klock II-1/+1
2018-11-04Update llvm-emscriptenNikita Popov-1/+1
This updates emscripten to version 1.38.15, which is based on LLVM 6.0.1.
2018-11-04Move a few more tests into the appveyor-subset-2.kennytm-1/+6
This should allow the timings be more balanced.
2018-11-04Ensure --exclude is checked against PathSet::Suitekennytm-2/+37
Fix the recent spurious 3 hour timeouts.
2018-11-03Auto merge of #55238 - alexcrichton:rm-jemalloc, r=estebankbors-62/+9
Remove the `alloc_jemalloc` crate This commit removes the `alloc_jemalloc` crate from the standard library and all related configuration. We will no longer be shipping this unstable crate. Rationale for this is provided on https://github.com/rust-lang/rust/issues/36963 and the many linked issues, but I can inline rationale here if desired! We currently rely on jemalloc for increased perf in the Rust compiler, however. [This perf run shows](https://perf.rust-lang.org/compare.html?start=74ff7dcb1388e60a613cd6050bcd372a3cc4998b&end=7e7928dc0340d79b404e93f0c79eb4b946c1d669&stat=wall-time) that if we switch to glibc 2.23's allocator that it's slower than jemalloc across many benchmarks. [This perf run, however](https://perf.rust-lang.org/compare.html?start=22cc2ae8057d14e980b7c784e1eb2eee26b59e7d&end=10c95ccfa7a7adc12f4e608621ca29f9b98eed29), shows that if we use `jemalloc-sys` from crates.io then rustc actually gets faster across all benchmarks! (presumably because it has a more recent version of jemalloc than our submodule). As a result, it's expected that this doesn't regress any code (as it's just removing an unstable crate) and it should actually improve rustc performance because it updates jemalloc. Closes #36963
2018-11-03Auto merge of #55363 - pietroalbini:update-cargo-vendor, r=Mark-Simulacrumbors-1/+1
Bump cargo-vendor version Currently we pin `cargo-vendor` to 0.1.4, which doesn't set the `User-Agent` HTTP header. crates.io is going to require that header in the near future, so this PR bumps the pinned version of the crate to the latest one (which correctly sets the header). r? @Mark-Simulacrum cc @sgrif
2018-11-02Auto merge of #54543 - GuillaumeGomez:top-level-index, r=QuietMisdreavusbors-16/+25
Add index page argument @Mark-Simulacrum: I might need some help from you: in bootstrap, I want to add an argument (a new flag added into `rustdoc`) in order to generate the current index directly when `rustdoc` is documenting the `std` lib. However, my change in `bootstrap` didn't do it and I assume it must be moved inside the `Std` struct. But there, I don't see how to pass it to `rustdoc` through `cargo`. Did I miss anything? r? @QuietMisdreavus
2018-11-02Use `jemalloc-sys` on Linux and OSX compilersAlex Crichton-2/+9
This commit adds opt-in support to the compiler to link to `jemalloc` in the compiler. When activated the compiler will depend on `jemalloc-sys`, instruct jemalloc to unprefix its symbols, and then link to it. The feature is activated by default on Linux/OSX compilers for x86_64/i686 platforms, and it's not enabled anywhere else for now. We may be able to opt-in other platforms in the future! Also note that the opt-in only happens on CI, it's otherwise unconditionally turned off by default. Closes #36963
2018-11-02Remove all jemalloc-related contentAlex Crichton-64/+4
This commit removes all jemalloc related submodules, configuration, etc, from the bootstrap, from the standard library, and from the compiler. This will be followed up with a change to use jemalloc specifically as part of rustc on blessed platforms.
2018-11-02Auto merge of #55316 - RalfJung:retagging, r=oli-obkbors-1/+8
Add Retagging statements This adds a `Retag` statement kind to MIR, used to perform the retagging operation from [Stacked Borrows](https://www.ralfj.de/blog/2018/08/07/stacked-borrows.html). It also kills the old `Validate` statements that I added last year. NOTE: This includes https://github.com/rust-lang/rust/pull/55270. Only [these commits are new](https://github.com/RalfJung/rust/compare/stacked-borrows-ng...RalfJung:retagging).
2018-11-01Rollup merge of #55280 - vlad20012:add-libproc_macro-to-src-disrt, ↵Pietro Albini-0/+1
r=Mark-Simulacrum Add libproc_macro to rust-src distribution Fixes #55279
2018-10-31Bump nightly to 1.32.0Alex Crichton-1/+1
* Also update the bootstrap compiler * Update cargo to 1.32.0 * Clean out stage0 annotations
2018-10-31bootstrap: bump cargo-vendor version to 0.1.19Pietro Albini-1/+1
2018-10-29don't forget to sync these flags with miriRalf Jung-0/+2
2018-10-29Emit Retag statements, kill Validate statementsRalf Jung-1/+6
Also "rename" -Zmir-emit-validate to -Zmir-emit-retag, which is just a boolean (yes or no).
2018-10-28Avoid directly catching BaseException in bootstrap configure scriptKonrad Borowski-1/+1
It includes stuff like pressing CTRL+C, which likely isn't intended.
2018-10-27bootstrap: be more explicit on what we collect into. NFCMatthias Krüger-2/+2
2018-10-26Rollup merge of #55391 - matthiaskrgr:bootstrap_cleanup, r=oli-obkkennytm-34/+33
bootstrap: clean up a few clippy findings remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.
2018-10-26Rollup merge of #55264 - michaelwoerister:single-cgu-std, r=simulacrumkennytm-5/+25
Compile the libstd we distribute with -Ccodegen-unit=1 This PR - adds the `single-codegen-unit-std` option to `config.toml` which allows for setting the CGU count for `libstd` and `libtest` independently of the one for the rest of the compiler, and - sets the new option to `true` for all dist jobs in CI. Fixes #54872.
2018-10-26Rollup merge of #55378 - Keruspe:bootstrap-linker, r=petrochenkovkennytm-0/+3
rustbuild: use configured linker to build boostrap Currently, bootstrap uses it to compile everything, but x.py wasn't using it yet to build bootstrap itself. This fixes the build for systems where the linker isn't called `cc`.
2018-10-26Rollup merge of #55375 - upstreaming:configure_cmake-comment-typo-fixes, ↵kennytm-2/+2
r=alexcrichton Typo fixes in configure_cmake comments Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>
2018-10-26Rollup merge of #55358 - sinkuu:redundant_clone2, r=estebankkennytm-3/+3
Remove redundant clone (2)
2018-10-26Rollup merge of #55343 - Keruspe:remap-debuginfo-release, r=alexcrichtonkennytm-1/+1
rustbuild: fix remap-debuginfo when building a release Fallback to the release number as we can't get the git commit sha as we're not in a git repository. Fixes #55341
2018-10-26bootstrap: clean up a few clippy findingsMatthias Krüger-34/+33
remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.