about summary refs log tree commit diff
path: root/src/bootstrap
AgeCommit message (Collapse)AuthorLines
2021-01-05Rollup merge of #80627 - bugadani:warn, r=Mark-SimulacrumYuki Okushi-1/+13
Builder: Warn if test file does not exist Running `./x.py test` with a file that does not exists (but where the path belongs to a test suite) silently ignores the missing file and runs the whole test suite. This PR prints a warning to reduce the potential surprise factor. Closes #80621
2021-01-05Rollup merge of #80533 - matthiaskrgr:bootstrap_clppy, r=Mark-SimulacrumYuki Okushi-13/+17
bootstrap: clippy fixes addresses: clippy::or_fun_call clippy::single_char_add_str clippy::comparison_to_empty clippy::or_fun_call
2021-01-05Auto merge of #80426 - jyn514:bootstrap-caching, r=Mark-Simulacrumbors-10/+11
Don't use `self.date` unconditionally for `program_out_of_date()` This avoids unnecessary cache invalidations for programs not affected by the stage0 version (which is everything except the stage0 compiler itself). The redundant invalidations weren't noticed until now because they only showed up on stage0 bumps, at which point people are used to rebuilding everything anyway. I noticed it in https://github.com/rust-lang/rust/pull/79540 because I wasn't adding `self.date` to the stamp file (because I didn't realize it was necessary). Rather than adding self.date I thought it was better to remove it from the cache key.
2021-01-04Builder: Warn if test file does not existDániel Buga-1/+13
2021-01-04./x.py clippy: allow the most noisy lintsMatthias Krüger-0/+11
This silences the following clippy lints in ./x.py clippy: many_single_char_names (there are a lot of warnings caused by stdarch) collapsible_if (can reduce readability) type_complexity missing_safety_doc (there are almost 3K warnings issued) too_many_arguments needless_lifetimes (people want 'tcx lifetimes etc) wrong_self_convention (warns about from_..(), to_..(), into_..().. fns that do or do not take self by reference.
2021-01-02Rollup merge of #80574 - jyn514:clean-bootstrap, r=Mark-SimulacrumMara Bos-0/+1
Clean bootstrap artifacts on `x.py clean` Closes https://github.com/rust-lang/rust/issues/76519 r? `@Mark-Simulacrum`
2021-01-02Auto merge of #79883 - frewsxcv:frewsxcv-san, r=shepmasterbors-9/+28
Enable ASan, TSan, UBSan for aarch64-apple-darwin. I confirmed ASan, TSan, UBSan all work for me locally with `clang` on my new Macbook Air. ~This requires https://github.com/rust-lang/llvm-project/pull/86~
2021-01-01Give a better error for download-ci-llvm if .xz is not supportedJoshua Nelson-1/+6
Previously: ``` curl: (22) The requested URL returned error: 404 failed to run: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o /tmp/tmp6ptXJV https://ci-artifacts.rust-lang.org/rustc-builds/99ad5a1a2824fea1ecf60068fd3636beae7ea2da/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.gz ``` Now: ``` error: XZ support is required to download LLVM help: consider disabling `download-ci-llvm` or using a different version of python Build completed unsuccessfully in 0:00:00 ```
2021-01-01Clean bootstrap artifacts on `x.py clean`Joshua Nelson-0/+1
2020-12-31Merge remote-tracking branch 'origin/master' into frewsxcv-sanCorey Farwell-1019/+815
2020-12-31Rollup merge of #80532 - tmiasko:rm;, r=Mark-SimulacrumDylan DPC-1/+1
remove unnecessary trailing semicolon from bootstrap
2020-12-31bootstrap: use the correct paths during ./x.py installPietro Albini-81/+45
2020-12-31bootstrap: change the dist outputs to GeneratedTarballPietro Albini-48/+64
The struct will allow to store more context on the generated tarballs.
2020-12-31bootstrap: never delete the tarball temporary directoryPietro Albini-9/+3
Files in the temporary directory are used by ./x.py install.
2020-12-31Auto merge of #80435 - pietroalbini:compression-formats, r=Mark-Simulacrumbors-6/+24
Only produce .xz tarballs on CI This PR adds a `./configure` option to choose which tarball compression formats to produce, and changes our CI configuration to only produce `.xz` tarballs. The release process will then recompress everything into `.gz` when producing a release. This will drastically reduce our storage costs for CI artifacts, as we'd stop storing the same data twice. **Stable, beta and nightly releases will not be affected by this at all.** Before landing this we'll need to increase the VM size of our release process, to recompress everything in a reasonable amount of time. r? `@Mark-Simulacrum`
2020-12-31bootstrap: clippy fixesMatthias Krüger-14/+18
addresses: clippy::or_fun_call clippy::single_char_add_str clippy::comparison_to_empty clippy::or_fun_call
2020-12-30Auto merge of #80530 - m-ou-se:rollup-zit69ko, r=m-ou-sebors-2/+4
Rollup of 9 pull requests Successful merges: - #78934 (refactor: removing library/alloc/src/vec/mod.rs ignore-tidy-filelength) - #79479 (Add `Iterator::intersperse`) - #80128 (Edit rustc_ast::ast::FieldPat docs) - #80424 (Don't give an error when creating a file for the first time) - #80458 (Some Promotion Refactoring) - #80488 (Do not create dangling &T in Weak<T>::drop) - #80491 (Miri: make size/align_of_val work for dangling raw ptrs) - #80495 (Rename kw::Invalid -> kw::Empty) - #80513 (Add regression test for #80062) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2020-12-30Rollup merge of #80424 - jyn514:bootstrap-cleanup, r=Mark-SimulacrumMara Bos-2/+4
Don't give an error when creating a file for the first time Previously, `os.remove` would always give a FileNotFound error the first time you called it, causing bootstrap to make unnecessary copies. This now only calls `remove()` if the file exists, avoiding the unnecessary error. This is a pretty small cleanup but I think it's useful. Taken from https://github.com/rust-lang/rust/pull/79540.
2020-12-30bootstrap: extract from any compression algorithm during distcheckPietro Albini-5/+2
2020-12-30Bump bootstrap compiler to 1.50 betaMark Rousskov-8/+2
2020-12-30Rollup merge of #80461 - rust-lang:tmandry-patch-1, r=Mark-SimulacrumYuki Okushi-1/+6
Add llvm-libunwind change to bootstrap CHANGELOG From #77703. This doesn't need a `changelog-seen` version bump because the old values aren't accepted anymore, meaning anyone who was using this had to change it already. r? ``@Mark-Simulacrum``
2020-12-30remove unnecessary trailing semicolon from bootstrapTomasz Miąsko-1/+1
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-11/+1
2020-12-29bootstrap: add the dist.compression-formats optionPietro Albini-1/+22
The option allows to add or remove compression formats used while producing dist tarballs.
2020-12-28Add llvm-libunwind change to bootstrap CHANGELOGTyler Mandry-1/+6
From #77703.
2020-12-28Rollup merge of #80434 - pietroalbini:tarball-temp-dir, r=Mark-SimulacrumDylan DPC-1/+1
bootstrap: put the component name in the tarball temp dir path This should not matter right now, but if we ever parallelize rustbuild this will avoid tarball contents being merged together. r? `@Mark-Simulacrum`
2020-12-28Rollup merge of #80362 - jyn514:rustc-macros, r=ehussDylan DPC-6/+9
Document rustc_macros on nightly-rustc Fixes https://github.com/rust-lang/rust/issues/80345. ![image](https://user-images.githubusercontent.com/23638587/103113442-b7ba2d00-4628-11eb-8a4d-c542f2d170e1.png) ![image](https://user-images.githubusercontent.com/23638587/103113448-bc7ee100-4628-11eb-8657-2d72e88de656.png) r? ``@ehuss``
2020-12-28bootstrap: put the component name in the tarball temp dir pathPietro Albini-1/+1
This should not matter right now, but if we ever parallelize rustbuild this will avoid tarball contents being merged together.
2020-12-28Auto merge of #80397 - Mark-Simulacrum:fix-bare-tarball, r=pietroalbinibors-1/+7
Use package name for top-level directory in bare tarballs This fixes a bug introduced by #79788. r? `@pietroalbini`
2020-12-27Don't use `self.date` unconditionally for `program_out_of_date()`Joshua Nelson-10/+11
This avoids unnecessary cache invalidations for programs not affected by the stage0 version (which is everything except the stage0 compiler itself). The redundant invalidations weren't noticed until now because they only showed up on stage0 bumps, at which point people are used to rebuilding everything anyway. I noticed it because I wasn't adding `self.date` to the stamp file (because I didn't realize it was necessary). Rather than adding self.date I thought it was better to remove it from the cache key.
2020-12-27Don't give an error when creating a file for the first timeJoshua Nelson-2/+4
Previously, `os.remove` would always give a FileNotFound error the first time you called it, causing bootstrap to make unnecessary copies. This now only calls `remove()` if the file exists, avoiding the unnecessary error.
2020-12-27Auto merge of #80315 - tmiasko:ignore-proc-macros, r=Mark-Simulacrumbors-1/+15
Ignore proc-macros when assembling rustc libdir Fixes #80294.
2020-12-26Use package name for top-level directory in bare tarballsMark Rousskov-1/+7
This fixes a bug introduced by #79788.
2020-12-26Auto merge of #80316 - ehuss:rustdoc-index, r=Mark-Simulacrumbors-0/+2
Include rustdoc in the compiler docs index. This should help ensure that the index page at https://doc.rust-lang.org/nightly/nightly-rustc/ includes a link to the rustdoc docs as well. Fixes #80307
2020-12-24Document rustc_macros on nightly-rustcJoshua Nelson-6/+9
2020-12-23bootstrap: convert reproducible-artifacts to use TarballPietro Albini-41/+4
2020-12-23bootstrap: use the normal compiler to build stdPietro Albini-2/+1
2020-12-23bootstrap: avoid producing the rust tarball during dry runsPietro Albini-0/+5
2020-12-23bootstrap: convert rustc-src to use TarballPietro Albini-62/+45
2020-12-23bootstrap: convert rust to use TarballPietro Albini-63/+65
2020-12-23bootstrap: convert rust-src to use TarballPietro Albini-33/+28
2020-12-23bootstrap: convert rust-analyzer to use TarballPietro Albini-50/+15
2020-12-23bootstrap: convert rls to use TarballPietro Albini-50/+13
2020-12-23bootstrap: convert rustfmt to use TarballPietro Albini-49/+16
2020-12-23bootstrap: convert miri to use TarballPietro Albini-51/+14
2020-12-23bootstrap: simplify including licenses and readmes to tarballsPietro Albini-10/+10
2020-12-23bootstrap: convert clippy to use TarballPietro Albini-48/+19
2020-12-23bootstrap: convert cargo to use TarballPietro Albini-57/+44
2020-12-23bootstrap: convert rust-analysis to use TarballPietro Albini-36/+12
2020-12-23bootstrap: convert rustc-dev to use TarballPietro Albini-40/+16