about summary refs log tree commit diff
path: root/src/bootstrap/tarball.rs
AgeCommit message (Collapse)AuthorLines
2023-10-17move bootstrap utils into bootstrap/src/utils moduleonur-ozkan-373/+0
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-07-30bootstrap: inline format!() argsMatthias Krüger-2/+2
2023-03-14add dist.compression-profile option to control compression speedPietro Albini-0/+1
2022-11-13Make all download functions need only Config, not BuilderJoshua Nelson-1/+1
This also adds a new `mod download` instead of scattering the download code across `config.rs` and `native.rs`.
2022-11-12Distinguish `--dry-run` from the automatic dry run checkJoshua Nelson-1/+1
2022-10-02re-add git-commit-hash file to tarballsdawnofmidnight-0/+1
rust-lang/rust#100557 removed the `git-commit-hash` file and replaced it with `git-commit-info`. However, build-manifest relies on the `git-commit-hash` file being present, so this adds it back.
2022-10-01fix: use git-commit-info for version informationdawnofmidnight-2/+3
This PR adds support for fetching version information from the `git-commit-info` file when building the compiler from a source tarball.
2022-08-27Sunset RLSEric Huss-6/+2
2022-06-19Panic if `dist` generates a symbolic link in a generated tarballJoshua Nelson-1/+19
This avoids regressions in rustup-toolchain-install-master
2022-04-19Ensure existance of dist directory when creating tarballNikita Popov-1/+3
2022-03-05Merge build_helper into utilbjorn3-1/+1
2022-03-05Remove build_helperbjorn3-2/+1
The majority of the code is only used by either rustbuild or rustc_llvm's build script. Rust_build is compiled once for rustbuild and once for every stage. This means that the majority of the code in this crate is needlessly compiled multiple times. By moving only the code actually used by the respective crates to rustbuild and rustc_llvm's build script, this needless duplicate compilation is avoided.
2021-04-17bootstrap: Restore missing --bulk-dirs for rust-docs, rustc-docsAnders Kaseorg-0/+17
The --bulk-dirs argument was removed for rust-docs in commit c768ce138427b1844c1f6594daba9c0e33928032 and rustc-docs in commit 8ca46fc7a83734c9622f11f25d16b82316f44bcc (#79788), presumably by mistake; that slowed down installation of rust-docs from under a second to some twenty *minutes*. Restoring --bulk-dirs reverses this slowdown. Fixes #80684. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-04-03Address review comments and Windows failure, and make cleanerRich Kadel-1/+1
2021-04-03Make rust-demangler installableRich Kadel-0/+5
Adds bootstrap rules to support installing rust-demangler. When compiling with `-Z instrument-coverage`, the coverage reports are generated by `llvm-cov`. `llvm-cov` includes a built-in demangler for C++, and an option to supply an alternate demangler. For Rust, we have `rust-demangler`, currently used in `rustc` coverage tests. Fuchsia's toolchain for Rust is built via `./x.py install`. Fuchsia is adding support for Rust coverage, and we need to include the `rust-demangler` in the installed `bin` directory. Configured rust-demangler as an in-tree extended tool. Added tests to support `./x.py test rust-demangler`. Install with extended tools by default only if `profiler = true`.
2020-12-31bootstrap: use the correct paths during ./x.py installPietro Albini-4/+12
2020-12-31bootstrap: change the dist outputs to GeneratedTarballPietro Albini-8/+21
The struct will allow to store more context on the generated tarballs.
2020-12-31bootstrap: never delete the tarball temporary directoryPietro Albini-7/+1
Files in the temporary directory are used by ./x.py install.
2020-12-31Auto merge of #80435 - pietroalbini:compression-formats, r=Mark-Simulacrumbors-1/+15
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-29bootstrap: add the dist.compression-formats optionPietro Albini-1/+15
The option allows to add or remove compression formats used while producing dist tarballs.
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-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-26Use package name for top-level directory in bare tarballsMark Rousskov-1/+7
This fixes a bug introduced by #79788.
2020-12-23bootstrap: convert rustc-src to use TarballPietro Albini-31/+42
2020-12-23bootstrap: convert rust to use TarballPietro Albini-25/+60
2020-12-23bootstrap: convert rust-src to use TarballPietro Albini-6/+25
2020-12-23bootstrap: convert rust-analyzer to use TarballPietro Albini-0/+9
2020-12-23bootstrap: convert rls to use TarballPietro Albini-0/+7
2020-12-23bootstrap: convert rustfmt to use TarballPietro Albini-0/+9
2020-12-23bootstrap: convert miri to use TarballPietro Albini-0/+7
2020-12-23bootstrap: simplify including licenses and readmes to tarballsPietro Albini-2/+8
2020-12-23bootstrap: convert clippy to use TarballPietro Albini-0/+9
2020-12-23bootstrap: convert cargo to use TarballPietro Albini-1/+29
2020-12-23bootstrap: convert rust-std to use TarballPietro Albini-0/+10
2020-12-23bootstrap: refactor showing the "dist" infoPietro Albini-2/+5
2020-12-23bootstrap: convert rustc to use TarballPietro Albini-0/+3
2020-12-23bootstrap: convert rust-docs to use TarballPietro Albini-7/+12
2020-12-23bootstrap: convert llvm-tools to use TarballPietro Albini-1/+14
2020-12-23bootstrap: convert build-manifest to use the new Tarball structPietro Albini-0/+124