-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #116196 - onur-ozkan:reorganize-bootstrap-sources, r=Ma…
…rk-Simulacrum reorganize/refactor bootstrap codebase Currently, bootstrap stores everything on the root path, including very large modules, which makes things very hard to scale and adds too much complexity. This PR has the following objectives: - Improving scalability. - Making bootstrap source more understandable for the new contributors(or for everyone). - Improving the development experience and making maintenance easier for the bootstrap team. The new source structure: ``` . ├── defaults │ ├── README.md │ ├── config.codegen.toml │ ├── config.compiler.toml │ ├── config.dist.toml │ ├── config.library.toml │ └── config.tools.toml ├── mk │ └── Makefile.in ├── src │ ├── bin │ │ ├── main.rs │ │ ├── rustc.rs │ │ ├── rustdoc.rs │ │ └── sccache-plus-cl.rs │ ├── core │ │ ├── build_steps │ │ │ ├── check.rs │ │ │ ├── clean.rs │ │ │ ├── compile.rs │ │ │ ├── dist.rs │ │ │ ├── doc.rs │ │ │ ├── format.rs │ │ │ ├── install.rs │ │ │ ├── llvm.rs │ │ │ ├── mod.rs │ │ │ ├── run.rs │ │ │ ├── setup.rs │ │ │ ├── suggest.rs │ │ │ ├── synthetic_targets.rs │ │ │ ├── test.rs │ │ │ ├── tool.rs │ │ │ └── toolstate.rs │ │ ├── config │ │ │ ├── config.rs │ │ │ ├── flags.rs │ │ │ └── mod.rs │ │ ├── builder.rs │ │ ├── download.rs │ │ ├── metadata.rs │ │ ├── mod.rs │ │ └── sanity.rs │ ├── tests │ │ ├── builder.rs │ │ ├── config.rs │ │ └── setup.rs │ ├── utils │ │ ├── bin_helpers.rs │ │ ├── cache.rs │ │ ├── cc_detect.rs │ │ ├── channel.rs │ │ ├── dylib.rs │ │ ├── helpers.rs │ │ ├── job.rs │ │ ├── metrics.rs │ │ ├── mod.rs │ │ ├── render_tests.rs │ │ └── tarball.rs │ └── lib.rs ├── Cargo.lock ├── Cargo.toml ├── README.md ├── bootstrap.py ├── bootstrap_test.py ├── build.rs ├── configure.py └── download-ci-llvm-stamp ``` The next step involves: - Adding more doc-comments to the bootstrap internals (although we already have a decent amount, there is space for improvement). - Breaking large modules into smaller, more manageable modules. - Significantly increasing our unit test coverage (which is currently lacking). This PR should serve as an initial step to make the tasks above much more easier. r? Mark-Simulacrum
- Loading branch information
Showing
45 changed files
with
530 additions
and
508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.