about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2020-05-02Auto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrumbors-129/+108
Make clippy a git subtree instead of a git submodule r? @eddyb cc #70651 documentation at https://github.com/rust-lang/rust/pull/70654
2020-05-02Rollup merge of #71736 - RalfJung:silence-spurious-unused, r=Mark-SimulacrumRalf Jung-6/+6
bootstrap: also apply unused-attributes hack without deny_warnings This is a follow-up to https://github.com/rust-lang/rust/pull/70881 that also silences these warnings when deny_warnings is off. They otherwise spam my screen during development and make it hard to see actual warnings. Cc @eddyb r? @Mark-Simulacrum
2020-05-02Also build clippy with `./x.py check`Oliver Scherer-69/+75
2020-05-02Gate on clippy on CIOliver Scherer-60/+33
2020-05-02Auto merge of #71716 - alexcrichton:bitcode-follow-up, r=nnethercotebors-3/+3
Rename `bitcode-in-rlib` option to `embed-bitcode` This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
2020-05-01Rename `bitcode-in-rlib` option to `embed-bitcode`Alex Crichton-3/+3
This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
2020-05-01bootstrap: also apply unused-attributes hack without deny_warningsRalf Jung-6/+6
2020-04-30Rollup merge of #71567 - Mark-Simulacrum:no-success, r=matthiaskrgrTyler Mandry-0/+3
Handle build completion message from Cargo This was introduced in the recent bump to 1.44 bootstrap cargo Fixes #71561.
2020-04-30Rollup merge of #71559 - dillona:detect_git_progress_version, r=Mark-SimulacrumDylan DPC-11/+15
Detect git version before attempting to use --progress Otherwise each update is run twice and errors are printed I've tested this with: git version 2.8.2.windows.1 (Windows) git version 2.26.2.266.ge870325ee8 (Linux built from source) git version 2.17.1 (Linux) git version 2.21.1 (Apple Git-122.3) (MacOS) I've tested with Python 2.7 (Windows, Linux, MacOS), 3.6 (Linux), and 3.7 (MacOS)
2020-04-29Add an index page for nightly rustc docs.Eric Huss-1/+5
2020-04-28Auto merge of #71486 - alexcrichton:arm64-lld, r=Mark-Simulacrumbors-2/+28
Enable "full tools" option on ARM dist builders This commit switches the `--enable-extended` option on the arm-related dist builders to `--enable-full-tools`. This alias in `config.py` corresponds to enabling a few more options: * `rust.lld = true` - this is the main purpose of this PR, to enable LLD on ARM-related platforms. This means it will effectively unlock compilation of wasm programs from an arm host. * `rust.llvm-tools = true` - it turns out that this option is largely ignored in rustbuild today. This is only read in one location to set some flags for the `llvm-tools` package, but the `llvm-tools` package is already produced on all of these builders. It's predicted that this will have no effect on build times. * `rust.codegen-backends = ['llvm']` - historically this also enabled the emscripten backend, but that has long since been removed. This brings the ARM dist builders in line with the x86_64 dist builders using this flag. The hope is that the extra time spent on CI building LLD will acceptable because it's cached by `sccache`, LLD is a relatively small C++ project, and the dist builders are all clocking well under 3 hours (the slowest of all builders) around 2 hours. There's likely some possible cleanup that can happen with these configure options since it doesn't look like they've aged too too well, but I'm hopeful that possible refactorings, if necessary, could be deferred to future PRs.
2020-04-25Handle build completion message from CargoMark Rousskov-0/+3
This was introduced in the recent bump to 1.43 bootstrap cargo
2020-04-25Detect git version before attempting to use --progressDillon Amburgey-11/+15
Otherwise each update is run twice and errors are printed
2020-04-25Auto merge of #71439 - Mark-Simulacrum:stage0-next, r=jonas-schievinkbors-1/+1
Bump bootstrap compiler This bumps the bootstrap compiler and the rustfmt that x.py fmt uses.
2020-04-25Bump bootstrap compilerMark Rousskov-1/+1
2020-04-25Auto merge of #71458 - ecstatic-morse:bootstrap-cfg-doc, r=Mark-Simulacrumbors-3/+18
Set `--cfg bootstrap` for stage0 rustdoc Resolves #71455. With this patch, running `./x.py doc --stage 0 src/libstd` with a clean `build` dir successfully outputs docs for `core`, `alloc` and `std` in under a minute. This kind of turnaround for viewing small changes to the standard library documentation is quite nice, and I think we should endeavour to keep it working. I'm not sure how involved that would be though. r? @Mark-Simulacrum
2020-04-24Fix cross-compiling LLD to different platformsAlex Crichton-2/+28
Looks like the native build system isn't great a coping with this, so try to work around that with a few workarounds.
2020-04-24Only set *FLAGS env vars if they are not emptyDylan MacKenzie-2/+10
2020-04-24Remove useless "" argsRustin-Liu-3/+3
Signed-off-by: Rustin-Liu <rustin.liu@gmail.com>
2020-04-23Set RUSTDOCFLAGS in `cargo` invocationDylan MacKenzie-2/+9
2020-04-22Build libstd with `-Cbitcode-in-rlib=yes`.Nicholas Nethercote-5/+17
So that the rlibs will work with both LTO and non-LTO builds.
2020-04-21Rollup merge of #71346 - mati865:rustbuild-tools, r=Mark-SimulacrumDylan DPC-1/+9
Do not build tools if user do not want them Fixes https://github.com/rust-lang/rust/issues/71307
2020-04-20Do not build tools if user do not want themMateusz Mikuła-1/+9
2020-04-18Auto merge of #71147 - cuviper:min-llvm8, r=Mark-Simulacrumbors-2/+2
Update the minimum external LLVM to 8 LLVM 8 was released on March 20, 2019, over a year ago.
2020-04-17Rollup merge of #71070 - petrochenkov:nolldaround, r=Mark-SimulacrumDylan DPC-21/+0
rustbuild: Remove stage 0 LLD flavor workaround for MSVC
2020-04-16Rollup merge of #70774 - GuillaumeGomez:clean-rustdoc-js-tools, r=ollie27Dylan DPC-1/+7
End cleanup on rustdoc-js tools Fixes #70689. It removes a lot of code, which is pretty nice. :3 We now only have one entry point and a small set of options. r? @ollie27
2020-04-14Update the minimum external LLVM to 8Josh Stone-2/+2
LLVM 8 was released on March 20, 2019, over a year ago.
2020-04-14Improve rustdoc js testers codeGuillaume Gomez-2/+3
2020-04-13Auto merge of #70882 - tmiasko:llvm-version-suffix, r=Mark-Simulacrumbors-3/+7
Make LLVM version suffix independent of rustc version on dev channel Remove rustc version from LLVM version suffix on dev channel, avoiding the need for full rebuilds when switching between branches with different LLVM submodule & rustc version. Note: To avoid full rebuild, on subsequent LLVM submodule update, copy the current value of `LLVM_VERSION_SUFFIX` from `build/*/llvm/build/CMakeCache.txt`, to `version-suffix` in `config.toml`.
2020-04-12rustbuild: Remove LLD flavor workaround for MSVCVadim Petrochenkov-21/+0
2020-04-12Rollup merge of #71029 - Mark-Simulacrum:cargo-build, r=Mark-SimulacrumDylan DPC-0/+2
Partial work on building with Cargo This cherry picks the commits I'm directly approving from #70999, I want to land them so that that PR is smaller.
2020-04-11Require compiler-rt root at ../src/llvm-project/compiler-rtLuca Barbieri-0/+2
2020-04-11End cleanup on rustdoc-js toolsGuillaume Gomez-1/+6
2020-04-11Rollup merge of #70881 - eddyb:stage0-hide-incremental-unused-attrs, ↵Mazdak Farrokhzad-0/+7
r=Mark-Simulacrum bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds. This should alleviate #58633 separately from a proper fix. r? @Mark-Simulacrum
2020-04-10Enforce Python 3 as much as possibleGuillaume Gomez-3/+6
2020-04-07Make LLVM version suffix independent of rustc version on dev channelTomasz Miąsko-3/+7
Remove rustc version from LLVM version suffix on dev channel, avoiding the need for full rebuilds when moving between commits with different LLVM submodule & rustc version.
2020-04-07bootstrap: work around "unused attribute" errors in incremental stdlib rebuilds.Eduard-Mihai Burtescu-0/+7
2020-04-04Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewokbors-4/+4
Move rustc-guide submodule to rustc-dev-guide r? @pietroalbini
2020-04-03Auto merge of #70726 - Centril:rollup-zrdkkpt, r=Centrilbors-1/+10
Rollup of 5 pull requests Successful merges: - #68334 (AArch64 bare-metal targets: Build rust-std) - #70224 (Clean up rustdoc js testers) - #70532 (Miri engine: stronger type-based sanity check for assignments) - #70698 (bootstrap: add `--json-output` for rust-analyzer) - #70715 (Fix typo in operands section) Failed merges: r? @ghost
2020-04-02bootstrap: add `--json-output` for rust-analyzerNiko Matsakis-1/+10
2020-04-02Translate the virtual `/rustc/$hash` prefix back to a real directory.Eduard-Mihai Burtescu-9/+38
2020-03-30Ensure LLVM is in the link path for "fulldeps" testsJosh Stone-1/+10
This is a follow-up to #70123, which added `llvm-config --libdir` to the `LIBRARY_PATH` for rustc tools. We need the same for "run-make-fulldeps" and "ui-fulldeps" tests which depend on compiler libraries, implicitly needing to link to `-lLLVM` as well.
2020-03-29Rollup merge of #70235 - dillona:70182-check-before-using-git, r=Mark-SimulacrumDylan DPC-11/+43
Validate git setup before accessing functionality Closes #70182
2020-03-26Upgrade rustc and bootstrap dependenciesMateusz Mikuła-1/+1
2020-03-24Move rustc-guide submodule to rustc-dev-guideSantiago Pastorino-4/+4
2020-03-24Auto merge of #70190 - pietroalbini:gha, r=Mark-Simulacrumbors-0/+103
Add GitHub Actions configuration This PR adds the GitHub Actions configuration to the rust-lang/rust repository. The configuration will be run in parallel with Azure Pipelines until the evaluation finishes: the infrastructure team will then decide whether to switch. Since GitHub Actions doesn't currently have any way to include pieces of configuration, this also adds the `src/tools/expand-yaml-anchors` tool, which serves as a sort of templating system. Otherwise the configuration is a mostly straight port from the Azure Pipelines configuration (thanks to all the PRs opened in the past). There are still a few small things I need to fix before we can land this, but it's mostly complete and ready for an initial review. r? @Mark-Simulacrum
2020-03-24bootstrap: remove default and only_host from expand-yaml-anchorsPietro Albini-2/+0
2020-03-24ci: add github actions configurationPietro Albini-0/+105
2020-03-24Auto merge of #70163 - nikic:llvm-10-preparation, r=cuviperbors-0/+2
Prepare for LLVM 10 upgrade This is #67759 minus the submodule update. * Fix two compatibility issues in the rustllvm wrapper. * Update data layout strings in tests. * Fix LLVM version comparison (this become a problem because the major version has two digits now). r? @cuviper
2020-03-23Rollup merge of #69494 - GuillaumeGomez:stabilize-crate-version, ↵Mazdak Farrokhzad-6/+6
r=ehuss,aleksator,ollie27 Stabilize --crate-version option in rustdoc I don't see any reason to not stabilize it anymore, so let's go! cc @kinnison @ehuss r? @ollie27