about summary refs log tree commit diff
path: root/src/bootstrap/mk
AgeCommit message (Collapse)AuthorLines
2023-09-23Pass `-jN` from Make to `BOOTSTRAP_ARGS`onur-ozkan-0/+7
Enables the same functionality as `x -jN` in Make by passing the `-jN` arg from Make to the `BOOTSTRAP_ARGS` args if it is specified. Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-08-06fix(bootstrap): rename exclude flag to skip 🐛Meysam Azad-2/+2
2023-06-18Auto merge of #112774 - compiler-errors:rollup-z8oof6r, r=compiler-errorsbors-2/+5
Rollup of 6 pull requests Successful merges: - #112537 (Don't record adjustments twice in `note_source_of_type_mismatch_constraint`) - #112663 (cleanup azure leftovers) - #112668 (Test `x.ps1` in `msvc` CI job) - #112710 (Re-use the deref-pattern recursion instead of duplicating the logic) - #112753 (Don't try to auto-bless 32-bit `mir-opt` tests on ARM Mac hosts) - #112758 (refactor(resolve): delete update_resolution function) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-18Auto merge of #112645 - Kobzol:ci-mingw-merge, r=pietroalbinibors-8/+6
CI: merge `mingw` test CI jobs Same as https://github.com/rust-lang/rust/pull/112633, but for `mingw`. From the logs it looks like the runner spends 40 minutes compiling `rustc`, and then `10`/`20` minutes running tests. It seems wasteful to split that into two jobs. CI run: https://github.com/rust-lang/rust/actions/runs/5275702134/jobs/9541479343?pr=112645 r? `@jyn514`
2023-06-18Merge `mingw-1/2` CI jobsJakub Beránek-8/+6
2023-06-18Test `x.ps1` in `msvc` CI jobJakub Beránek-2/+5
2023-06-14Merge `msvc-1/2` CI jobsJakub Beránek-9/+3
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-2/+2
2022-12-20Remove unused `check-stage2-T-arm-linux-androideabi-H-x86_64-unknown-linux-gnu`Joshua Nelson-5/+0
It's not used anywhere in CI, and it seems of questionable use. It was first added in 0e272de69f4a9c889e5f1a024a88b3e1f60cb6c5, which looks like it's just intended for CI, not as a user-facing feature.
2022-08-12Use an extensionless `x` script for non-WindowsJosh Stone-1/+1
2022-08-08Add `x.sh` and `x.ps1` shell scriptsJoshua Nelson-3/+8
This is a more ambitious version of https://github.com/rust-lang/rust/pull/98716. It still changes the shebang back to python3, for compatibility with non-Unix systems, but also adds alternative entrypoints for systems without `python3` installed. These scripts will be necessary for the rust entrypoint (#94829), so I see little downside in adding them early.
2022-05-07Move check-bootstrap from a makefile rule to test::Bootstrapgimbles-2/+0
2021-05-26Enforce rustdoc-gui test-suite runGuillaume Gomez-4/+0
2021-02-21Update CI scriptsGuillaume Gomez-0/+4
2020-12-29Remove `compile-fail` test suiteVadim Petrochenkov-3/+1
2020-07-27Add assert that tests happen with stage 2 in CIJoshua Nelson-17/+17
- Use stage 2 for makefile - Move assert to builder - Don't add an assert for --help - Allow --stage 0 if passed explicitly - Don't assert defaults during tests Otherwise it's impossible to test the defaults!
2020-07-27mv std libs to library/mark-2/+2
2020-06-12Remove vestigial CI job msvc-aux.Eric Huss-8/+2
2020-05-06Remove code related to `test/run-fail`Yuki Okushi-1/+0
2019-08-16ci: move linkcheck from mingw-2 to mingw-1Pietro Albini-0/+9
Running UI tests now takes a huge amount of time on mingw builders (between 40 and 50 minutes), with mingw-1 builders taking even an hour less to finish than mingw-2. This PR moves linkcheck from mingw-2 to mingw-1, removing between 10 and 20 minutes of runtime on the -2 builders.
2019-07-27Remove run-pass test suitesVadim Petrochenkov-4/+0
2019-05-13ci: remove fanout from the azure pipelines configPietro Albini-68/+2
2019-05-10Add Azure PipelinesJohn Erickson-4/+70
2019-03-15rustbuild: remove obsolete fulldeps behavior from src/test/pretty tests, and ↵Eduard-Mihai Burtescu-1/+0
enable them by default.
2019-01-24Remove quote_*! macros and associated APIsMark Simulacrum-1/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-04Move a few more tests into the appveyor-subset-2.kennytm-1/+6
This should allow the timings be more balanced.
2018-03-24appveyor: Move run-pass-fulldeps to extra buildersAlex Crichton-0/+7
We've made headway towards splitting the test suite across two appveyor builders and this moves one more tests suite between builders. The last [failed build][fail] had its longest running test suite and I've moved that to the secondary builder. cc #48844 [fail]: https://ci.appveyor.com/project/rust-lang/rust/build/1.0.6782
2018-03-07appveyor: Fix a switched condition for cargotestAlex Crichton-2/+2
It was intended that EXCLUDE_CARGO *doesn't* run cargotest!
2018-03-07Fix an error in the appveyor configAlex Crichton-2/+6
2018-03-07appveyor: Shard more slow MSVC buildersAlex Crichton-0/+1
Take two more slow builders and split them in two to get them under 2 hrs
2017-12-03Move the swap the tools test and cargotest within check-aux.kennytm-3/+1
The cargotest job is renamed to tools for clarification.
2017-10-23Move cargotest to separate jobs on Travis-CI and AppVeyorSimon Sapin-1/+0
2017-09-17Get the miri test suite to run inside the rustc dev environmentOliver Schneider-0/+1
2017-09-13Reviewer changesNick Cameron-0/+1
2017-08-27rustbuild: Rewrite the configure script in PythonAlex Crichton-2/+0
This commit rewrites our ancient `./configure` script from shell into Python. The impetus for this change is to remove `config.mk` which is just a vestige of the old makefile build system at this point. Instead all configuration is now solely done through `config.toml`. The python script allows us to more flexibly program (aka we can use loops easily) and create a `config.toml` which is based off `config.toml.example`. This way we can preserve comments and munge various values as we see fit. It is intended that the configure script here is a drop-in replacement for the previous configure script, no functional change is intended. Also note that the rationale for this is also because our build system requires Python, so having a python script a bit earlier shouldn't cause too many problems. Closes #40730
2017-07-25bootstrap: Major refactoringMilton Mazzarri-0/+2
This commit includes the following: * Fix syntax errors in Python 3 * Include more docstrings in classes, methods, and functions * Include unit tests using `unittest` * Merge implementation of `{rustc,cargo}_out_of_date` * Merge implementation of `RustBuild.{cargo,rustc}` * Remove unnecessary source code * Move all the attributes defined outside of `__init__` * Remove remaining `%s` from print function * Remove `WindowsError` reference on non-windows systems * Rename some variables to be more explicit avoid their meaning * Run bootstrap tests in the CI process * Remove non-pythonic getters * Remove duplicate code in `download_stage0` method * Reduce the number of branches in `build_bootstrap` method * Re-raise exception when we cannot execute uname in non-windows systems * Avoid long lines
2017-07-17Run RLS testsNick Cameron-1/+2
2017-05-22rustbuild: split Install out of Dist subcommandMarc-Antoine Perennou-1/+1
only create source tarball for the Dist subcommand mark install rule as default for Kind::Install split install-docs split install-std factor out empty_dir handling split install-cargo split install-analysis split install-src rework install-rustc properly handle cross-compilation setups for install use pkgname in install split plain source tarball generation from rust-src dist document src-tarball in config.toml.exmaple Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-04-24Run tests for the cargo submodule in treeAlex Crichton-0/+1
Previously the `cargotest` suite would run some arbitrary revision of Cargo's test suite, but now that we're bundling it in tree we should be running the Cargo submodule's test suite instead.
2017-02-25travis: Make more network requests retryableAlex Crichton-0/+2
This commit attempts to move more network operations to being retryable through various operations. For example git submodule updates, downloading snapshots, etc, are now all in retryable steps. Hopefully this commit can cut down on the number of network failures we've been seeing!
2017-02-06rustbuild: Fix a few locations with makefiles goneAlex Crichton-1/+2
* Add version info to channel.rs as main.mk is no longer available * Update `Makefile.in` used with bootstrap to not try to require `mk/util.mk` * Update the `dist` target to avoid the makefile pieces
2016-12-30rustbuild: Compile all support tools in stage0Alex Crichton-1/+1
This commit changes all tools and such to get compiled in stage0, not in later stages. The purpose of this commit is to cut down dependencies on later stages for future modifications to the build system. Notably we're going to be adding builders that produce a full suite of cross-compiled artifacts for a particular host, and that shouldn't compile the `x86_64-unknown-linux-gnu` compiler more than once. Currently dependencies on, for example, the error index end up compiling the `x86_64-unknown-linux-gnu` compiler more than necessary. As a result here we move many dependencies on these tools to being produced by a stage0 compiler, not a stage1+ compiler. None of these tools actually need to be staged at all, so they'll exhibit consistent behavior across the stages.
2016-12-29rustbuild: Don't run pretty tests by defaultAlex Crichton-2/+10
This commit relegates all pretty tests to not get run by default and rather get run as part of an "aux" test suite. This "aux" suite is renamed from the old "cargotest" suite to just collect tests that don't need to run everywhere but should at least pass on Unix/Windows.
2016-12-20rustbuild: Actually test musl on the musl botAlex Crichton-1/+1
A typo unfortunately meant that we haven't been testing musl for a bit, so now it's time to discover if we accidentally introduced a regression!
2016-12-14rustbuild: Run `dist` on a `distcheck`Alex Crichton-1/+2
This is what the nightly bots expect, so let's be sure to do that.
2016-12-11Auto merge of #38252 - pnkfelix:mildly-robustify-configure-msg, r=alexcrichtonbors-1/+1
Make configure message re x.py not assume build dir == src dir Fix #38251 but perhaps not BEST fix for it. As driveby, fix copyright year in `Makefile.in`
2016-12-08rustbuild: Implement distcheckAlex Crichton-0/+2
This commit implements the `distcheck` target for rustbuild which is only ever run on our nightly bots. This essentially just creates a tarball, un-tars it, and then runs a full build, validating that the release tarballs do indeed have everything they need to build Rust.
2016-12-08Fix #38251 but perhaps not BEST fix for it.Felix S. Klock II-1/+1
2016-12-07mk: Switch rustbuild to the default build systemAlex Crichton-8/+12
This commit switches the default build system for Rust from the makefiles to rustbuild. The rustbuild build system has been in development for almost a year now and has become quite mature over time. This commit is an implementation of the proposal on [internals] which slates deletion of the makefiles on 2016-01-02. [internals]: https://internals.rust-lang.org/t/proposal-for-promoting-rustbuild-to-official-status/4368 This commit also updates various documentation in `README.md`, `CONTRIBUTING.md`, `src/bootstrap/README.md`, and throughout the source code of rustbuild itself. Closes #37858